Qt: Change header guards to pragma once

This commit is contained in:
Vicki Pfau 2017-08-11 18:53:24 -07:00
parent ec1fc632b2
commit 3227d74e4d
65 changed files with 69 additions and 259 deletions

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_ABOUT_SCREEN #pragma once
#define QGBA_ABOUT_SCREEN
#include <QDialog> #include <QDialog>
@ -23,5 +22,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_ARCHIVE_INSPECTOR #pragma once
#define QGBA_ARCHIVE_INSPECTOR
#include "ui_ArchiveInspector.h" #include "ui_ArchiveInspector.h"
@ -26,5 +25,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_ASSET_TILE #pragma once
#define QGBA_ASSET_TILE
#include "ui_AssetTile.h" #include "ui_AssetTile.h"
@ -44,5 +43,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_ASSET_VIEW #pragma once
#define QGBA_ASSET_VIEW
#include <QTimer> #include <QTimer>
#include <QWidget> #include <QWidget>
@ -48,5 +47,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_AUDIO_DEVICE #pragma once
#define QGBA_AUDIO_DEVICE
#include <QAudioFormat> #include <QAudioFormat>
#include <QIODevice> #include <QIODevice>
@ -31,5 +30,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,8 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_AUDIO_PROCESSOR #pragma once
#define QGBA_AUDIO_PROCESSOR
#include <QObject> #include <QObject>
#include <memory> #include <memory>
@ -59,5 +59,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,8 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_AUDIO_PROCESSOR_QT #pragma once
#define QGBA_AUDIO_PROCESSOR_QT
#include "AudioProcessor.h" #include "AudioProcessor.h"
class QAudioOutput; class QAudioOutput;
@ -39,5 +39,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,8 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_AUDIO_PROCESSOR_SDL #pragma once
#define QGBA_AUDIO_PROCESSOR_SDL
#include "AudioProcessor.h" #include "AudioProcessor.h"
#ifdef BUILD_SDL #ifdef BUILD_SDL
@ -39,5 +39,3 @@ private:
} }
#endif #endif
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_CHEATS_MODEL #pragma once
#define QGBA_CHEATS_MODEL
#include <QAbstractItemModel> #include <QAbstractItemModel>
#include <QFont> #include <QFont>
@ -51,5 +50,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_CHEATS_VIEW #pragma once
#define QGBA_CHEATS_VIEW
#include <QWidget> #include <QWidget>
@ -44,5 +43,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_COLOR_PICKER #pragma once
#define QGBA_COLOR_PICKER
#include <QObject> #include <QObject>
@ -33,5 +32,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_CONFIG_CONTROLLER #pragma once
#define QGBA_CONFIG_CONTROLLER
#include "Override.h" #include "Override.h"
@ -110,5 +109,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_CORE_CONTROLLER #pragma once
#define QGBA_CORE_CONTROLLER
#include <QByteArray> #include <QByteArray>
#include <QList> #include <QList>
@ -216,5 +215,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_CORE_MANAGER #pragma once
#define QGBA_CORE_MANAGER
#include <QFileInfo> #include <QFileInfo>
#include <QObject> #include <QObject>
@ -41,5 +40,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_DEBUGGER_CONSOLE #pragma once
#define QGBA_DEBUGGER_CONSOLE
#include "ui_DebuggerConsole.h" #include "ui_DebuggerConsole.h"
@ -29,5 +28,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_DEBUGGER_CONSOLE_CONTROLLER #pragma once
#define QGBA_DEBUGGER_CONSOLE_CONTROLLER
#include "DebuggerController.h" #include "DebuggerController.h"
@ -59,5 +58,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_DEBUGGER_CONTROLLER #pragma once
#define QGBA_DEBUGGER_CONTROLLER
#include <QObject> #include <QObject>
@ -44,5 +43,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_DISPLAY #pragma once
#define QGBA_DISPLAY
#include <mgba-util/common.h> #include <mgba-util/common.h>
@ -85,5 +84,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_DISPLAY_GL #pragma once
#define QGBA_DISPLAY_GL
#if defined(BUILD_GL) || defined(BUILD_GLES) #if defined(BUILD_GL) || defined(BUILD_GLES)
@ -130,5 +129,3 @@ private:
} }
#endif #endif
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_DISPLAY_QT #pragma once
#define QGBA_DISPLAY_QT
#include "Display.h" #include "Display.h"
@ -48,5 +47,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_APP_H #pragma once
#define QGBA_APP_H
#include <QApplication> #include <QApplication>
#include <QFileDialog> #include <QFileDialog>
@ -83,5 +82,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GBA_KEY_EDITOR #pragma once
#define QGBA_GBA_KEY_EDITOR
#include <QList> #include <QList>
#include <QPicture> #include <QPicture>
@ -92,5 +91,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GBA_OVERRIDE #pragma once
#define QGBA_GBA_OVERRIDE
#include "Override.h" #include "Override.h"
@ -22,5 +21,3 @@ public:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GB_OVERRIDE #pragma once
#define QGBA_GB_OVERRIDE
#include "Override.h" #include "Override.h"
@ -22,5 +21,3 @@ public:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GDB_CONTROLLER #pragma once
#define QGBA_GDB_CONTROLLER
#include "DebuggerController.h" #include "DebuggerController.h"
@ -47,5 +46,3 @@ private:
} }
#endif #endif
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GDB_WINDOW #pragma once
#define QGBA_GDB_WINDOW
#include <QDialog> #include <QDialog>
@ -40,5 +39,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GIF_VIEW #pragma once
#define QGBA_GIF_VIEW
#ifdef USE_MAGICK #ifdef USE_MAGICK
@ -55,5 +54,3 @@ private:
} }
#endif #endif
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GAMEPAD_AXIS_EVENT #pragma once
#define QGBA_GAMEPAD_AXIS_EVENT
#include <QEvent> #include <QEvent>
@ -42,5 +41,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GAMEPAD_BUTTON_EVENT #pragma once
#define QGBA_GAMEPAD_BUTTON_EVENT
#include <QEvent> #include <QEvent>
@ -34,5 +33,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_GAMEPAD_HAT_EVENT #pragma once
#define QGBA_GAMEPAD_HAT_EVENT
#include <QEvent> #include <QEvent>
@ -44,5 +43,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_IOVIEWER #pragma once
#define QGBA_IOVIEWER
#include <QDialog> #include <QDialog>
#include <QList> #include <QList>
@ -71,5 +70,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_INPUT_CONTROLLER_H #pragma once
#define QGBA_INPUT_CONTROLLER_H
#include "GamepadAxisEvent.h" #include "GamepadAxisEvent.h"
#include "GamepadHatEvent.h" #include "GamepadHatEvent.h"
@ -179,5 +178,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_INPUT_PROFILE #pragma once
#define QGBA_INPUT_PROFILE
#include "GamepadAxisEvent.h" #include "GamepadAxisEvent.h"
@ -94,5 +93,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_KEY_EDITOR #pragma once
#define QGBA_KEY_EDITOR
#include "GamepadAxisEvent.h" #include "GamepadAxisEvent.h"
#include "GamepadHatEvent.h" #include "GamepadHatEvent.h"
@ -64,5 +63,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_LOAD_SAVE_STATE #pragma once
#define QGBA_LOAD_SAVE_STATE
#include <QWidget> #include <QWidget>
@ -57,5 +56,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_LOG_CONTROLLER #pragma once
#define QGBA_LOG_CONTROLLER
#include "GBAApp.h" #include "GBAApp.h"
@ -66,5 +65,3 @@ private:
#define LOG(C, L) (*LogController::global())(mLOG_ ## L, _mLOG_CAT_ ## C ()) #define LOG(C, L) (*LogController::global())(mLOG_ ## L, _mLOG_CAT_ ## C ())
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_LOG_VIEW #pragma once
#define QGBA_LOG_VIEW
#include <QQueue> #include <QQueue>
#include <QWidget> #include <QWidget>
@ -50,5 +49,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_MEMORY_MODEL #pragma once
#define QGBA_MEMORY_MODEL
#include <QAbstractScrollArea> #include <QAbstractScrollArea>
#include <QFont> #include <QFont>
@ -99,5 +98,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_MEMORY_SEARCH #pragma once
#define QGBA_MEMORY_SEARCH
#include <memory> #include <memory>
@ -45,5 +44,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_MEMORY_VIEW #pragma once
#define QGBA_MEMORY_VIEW
#include "MemoryModel.h" #include "MemoryModel.h"
@ -38,5 +37,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_MESSAGE_PAINTER #pragma once
#define QGBA_MESSAGE_PAINTER
#include <QMutex> #include <QMutex>
#include <QObject> #include <QObject>
@ -43,5 +42,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_MULTIPLAYER_CONTROLLER #pragma once
#define QGBA_MULTIPLAYER_CONTROLLER
#include <QMutex> #include <QMutex>
#include <QList> #include <QList>
@ -64,4 +63,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_OBJ_VIEW #pragma once
#define QGBA_OBJ_VIEW
#include "AssetView.h" #include "AssetView.h"
@ -60,5 +59,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_OVERRIDE #pragma once
#define QGBA_OVERRIDE
struct Configuration; struct Configuration;
struct mCore; struct mCore;
@ -21,5 +20,3 @@ public:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_OVERRIDE_VIEW #pragma once
#define QGBA_OVERRIDE_VIEW
#include <QDialog> #include <QDialog>
@ -59,5 +58,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_PALETTE_VIEW #pragma once
#define QGBA_PALETTE_VIEW
#include <QWidget> #include <QWidget>
@ -40,5 +39,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_PRINTER_VIEW #pragma once
#define QGBA_PRINTER_VIEW
#include <QDialog> #include <QDialog>
#include <QPixmap> #include <QPixmap>
@ -46,5 +45,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_ROM_INFO #pragma once
#define QGBA_ROM_INFO
#include <QWidget> #include <QWidget>
@ -27,5 +26,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_SAVESTATE_BUTTON #pragma once
#define QGBA_SAVESTATE_BUTTON
#include <QAbstractButton> #include <QAbstractButton>
@ -19,5 +18,3 @@ protected:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_SENSOR_VIEW #pragma once
#define QGBA_SENSOR_VIEW
#include <QTimer> #include <QTimer>
#include <QDialog> #include <QDialog>
@ -53,5 +52,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_SETTINGS_VIEW #pragma once
#define QGBA_SETTINGS_VIEW
#include <QDialog> #include <QDialog>
@ -79,5 +78,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_SHADER_SELECTOR_H #pragma once
#define QGBA_SHADER_SELECTOR_H
#if defined(BUILD_GL) || defined(BUILD_GLES) #if defined(BUILD_GL) || defined(BUILD_GLES)
@ -58,5 +57,3 @@ private:
} }
#endif #endif
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_SHORTCUT_MODEL #pragma once
#define QGBA_SHORTCUT_MODEL
#include "GamepadAxisEvent.h" #include "GamepadAxisEvent.h"
@ -144,5 +143,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_SHORTCUT_VIEW #pragma once
#define QGBA_SHORTCUT_VIEW
#include "GamepadAxisEvent.h" #include "GamepadAxisEvent.h"
@ -45,5 +44,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_SWATCH #pragma once
#define QGBA_SWATCH
#include <QColor> #include <QColor>
#include <QWidget> #include <QWidget>
@ -41,5 +40,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_TILE_PAINTER #pragma once
#define QGBA_TILE_PAINTER
#include <QColor> #include <QColor>
#include <QWidget> #include <QWidget>
@ -38,5 +37,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_TILE_VIEW #pragma once
#define QGBA_TILE_VIEW
#include "AssetView.h" #include "AssetView.h"
@ -41,5 +40,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_VFILE_DEVICE #pragma once
#define QGBA_VFILE_DEVICE
#include <QFileDevice> #include <QFileDevice>
@ -41,5 +40,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,8 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_VIDEO_DUMPER #pragma once
#define QGBA_VIDEO_DUMPER
#include <QAbstractVideoSurface> #include <QAbstractVideoSurface>
namespace QGBA { namespace QGBA {
@ -23,5 +23,3 @@ signals:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_VIDEO_VIEW #pragma once
#define QGBA_VIDEO_VIEW
#ifdef USE_FFMPEG #ifdef USE_FFMPEG
@ -117,5 +116,3 @@ private:
} }
#endif #endif
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_WINDOW #pragma once
#define QGBA_WINDOW
#include <QDateTime> #include <QDateTime>
#include <QList> #include <QList>
@ -245,5 +244,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_LIBRARY_CONTROLLER #pragma once
#define QGBA_LIBRARY_CONTROLLER
#include <memory> #include <memory>
@ -125,5 +124,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_LIBRARY_GRID #pragma once
#define QGBA_LIBRARY_GRID
#include <QListWidget> #include <QListWidget>
@ -46,5 +45,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_LIBRARY_TREE #pragma once
#define QGBA_LIBRARY_TREE
#include <QTreeWidget> #include <QTreeWidget>
@ -53,5 +52,3 @@ private:
}; };
} }
#endif

View File

@ -3,8 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef QGBA_UTILS_H #pragma once
#define QGBA_UTILS_H
#include <mgba/core/core.h> #include <mgba/core/core.h>
@ -16,5 +15,3 @@ QString niceSizeFormat(size_t filesize);
QString nicePlatformFormat(mPlatform platform); QString nicePlatformFormat(mPlatform platform);
} }
#endif