all repos — mgba @ 3227d74e4d434d497673e5a77589b674e811c969

mGBA Game Boy Advance Emulator

Qt: Change header guards to pragma once
Vicki Pfau vi@endrift.com
Fri, 11 Aug 2017 18:53:24 -0700
commit

3227d74e4d434d497673e5a77589b674e811c969

parent

ec1fc632b23749add411a2d9a9a4a32bd957a99c

65 files changed, 69 insertions(+), 259 deletions(-)

jump to
M src/platform/qt/AboutScreen.hsrc/platform/qt/AboutScreen.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_ABOUT_SCREEN -#define QGBA_ABOUT_SCREEN +#pragma once #include <QDialog>

@@ -23,5 +22,3 @@ Ui::AboutScreen m_ui;

}; } - -#endif
M src/platform/qt/ArchiveInspector.hsrc/platform/qt/ArchiveInspector.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_ARCHIVE_INSPECTOR -#define QGBA_ARCHIVE_INSPECTOR +#pragma once #include "ui_ArchiveInspector.h"

@@ -26,5 +25,3 @@ Ui::ArchiveInspector m_ui;

}; } - -#endif
M src/platform/qt/AssetTile.hsrc/platform/qt/AssetTile.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_ASSET_TILE -#define QGBA_ASSET_TILE +#pragma once #include "ui_AssetTile.h"

@@ -44,5 +43,3 @@ int m_boundaryBase;

}; } - -#endif
M src/platform/qt/AssetView.hsrc/platform/qt/AssetView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_ASSET_VIEW -#define QGBA_ASSET_VIEW +#pragma once #include <QTimer> #include <QWidget>

@@ -48,5 +47,3 @@ QTimer m_updateTimer;

}; } - -#endif
M src/platform/qt/AudioDevice.hsrc/platform/qt/AudioDevice.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_AUDIO_DEVICE -#define QGBA_AUDIO_DEVICE +#pragma once #include <QAudioFormat> #include <QIODevice>

@@ -31,5 +30,3 @@ mCoreThread* m_context;

}; } - -#endif
M src/platform/qt/AudioProcessor.hsrc/platform/qt/AudioProcessor.h

@@ -3,8 +3,8 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_AUDIO_PROCESSOR -#define QGBA_AUDIO_PROCESSOR +#pragma once + #include <QObject> #include <memory>

@@ -59,5 +59,3 @@ static Driver s_driver;

}; } - -#endif
M src/platform/qt/AudioProcessorQt.hsrc/platform/qt/AudioProcessorQt.h

@@ -3,8 +3,8 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_AUDIO_PROCESSOR_QT -#define QGBA_AUDIO_PROCESSOR_QT +#pragma once + #include "AudioProcessor.h" class QAudioOutput;

@@ -39,5 +39,3 @@ unsigned m_sampleRate = 44100;

}; } - -#endif
M src/platform/qt/AudioProcessorSDL.hsrc/platform/qt/AudioProcessorSDL.h

@@ -3,8 +3,8 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_AUDIO_PROCESSOR_SDL -#define QGBA_AUDIO_PROCESSOR_SDL +#pragma once + #include "AudioProcessor.h" #ifdef BUILD_SDL

@@ -39,5 +39,3 @@

} #endif - -#endif
M src/platform/qt/CheatsModel.hsrc/platform/qt/CheatsModel.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_CHEATS_MODEL -#define QGBA_CHEATS_MODEL +#pragma once #include <QAbstractItemModel> #include <QFont>

@@ -51,5 +50,3 @@ QFont m_font;

}; } - -#endif
M src/platform/qt/CheatsView.hsrc/platform/qt/CheatsView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_CHEATS_VIEW -#define QGBA_CHEATS_VIEW +#pragma once #include <QWidget>

@@ -44,5 +43,3 @@ CheatsModel m_model;

}; } - -#endif
M src/platform/qt/ColorPicker.hsrc/platform/qt/ColorPicker.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_COLOR_PICKER -#define QGBA_COLOR_PICKER +#pragma once #include <QObject>

@@ -33,5 +32,3 @@ QWidget* m_parent = nullptr;

}; } - -#endif
M src/platform/qt/ConfigController.hsrc/platform/qt/ConfigController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_CONFIG_CONTROLLER -#define QGBA_CONFIG_CONTROLLER +#pragma once #include "Override.h"

@@ -110,5 +109,3 @@ static QString s_configDir;

}; } - -#endif
M src/platform/qt/CoreController.hsrc/platform/qt/CoreController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_CORE_CONTROLLER -#define QGBA_CORE_CONTROLLER +#pragma once #include <QByteArray> #include <QList>

@@ -216,5 +215,3 @@ #endif

}; } - -#endif
M src/platform/qt/CoreManager.hsrc/platform/qt/CoreManager.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_CORE_MANAGER -#define QGBA_CORE_MANAGER +#pragma once #include <QFileInfo> #include <QObject>

@@ -41,5 +40,3 @@ bool m_preload = false;

}; } - -#endif
M src/platform/qt/DebuggerConsole.hsrc/platform/qt/DebuggerConsole.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_DEBUGGER_CONSOLE -#define QGBA_DEBUGGER_CONSOLE +#pragma once #include "ui_DebuggerConsole.h"

@@ -29,5 +28,3 @@ DebuggerConsoleController* m_consoleController;

}; } - -#endif
M src/platform/qt/DebuggerConsoleController.hsrc/platform/qt/DebuggerConsoleController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_DEBUGGER_CONSOLE_CONTROLLER -#define QGBA_DEBUGGER_CONSOLE_CONTROLLER +#pragma once #include "DebuggerController.h"

@@ -59,5 +58,3 @@ } m_backend;

}; } - -#endif
M src/platform/qt/DebuggerController.hsrc/platform/qt/DebuggerController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_DEBUGGER_CONTROLLER -#define QGBA_DEBUGGER_CONTROLLER +#pragma once #include <QObject>

@@ -44,5 +43,3 @@ QMetaObject::Connection m_autoattach;

}; } - -#endif
M src/platform/qt/Display.hsrc/platform/qt/Display.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_DISPLAY -#define QGBA_DISPLAY +#pragma once #include <mgba-util/common.h>

@@ -85,5 +84,3 @@ QTimer m_mouseTimer;

}; } - -#endif
M src/platform/qt/DisplayGL.hsrc/platform/qt/DisplayGL.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_DISPLAY_GL -#define QGBA_DISPLAY_GL +#pragma once #if defined(BUILD_GL) || defined(BUILD_GLES)

@@ -130,5 +129,3 @@

} #endif - -#endif
M src/platform/qt/DisplayQt.hsrc/platform/qt/DisplayQt.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_DISPLAY_QT -#define QGBA_DISPLAY_QT +#pragma once #include "Display.h"

@@ -48,5 +47,3 @@ std::shared_ptr<CoreController> m_context = nullptr;

}; } - -#endif
M src/platform/qt/GBAApp.hsrc/platform/qt/GBAApp.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_APP_H -#define QGBA_APP_H +#pragma once #include <QApplication> #include <QFileDialog>

@@ -83,5 +82,3 @@ #endif

}; } - -#endif
M src/platform/qt/GBAKeyEditor.hsrc/platform/qt/GBAKeyEditor.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GBA_KEY_EDITOR -#define QGBA_GBA_KEY_EDITOR +#pragma once #include <QList> #include <QPicture>

@@ -92,5 +91,3 @@ QPicture m_background;

}; } - -#endif
M src/platform/qt/GBAOverride.hsrc/platform/qt/GBAOverride.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GBA_OVERRIDE -#define QGBA_GBA_OVERRIDE +#pragma once #include "Override.h"

@@ -22,5 +21,3 @@ struct GBACartridgeOverride override;

}; } - -#endif
M src/platform/qt/GBOverride.hsrc/platform/qt/GBOverride.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GB_OVERRIDE -#define QGBA_GB_OVERRIDE +#pragma once #include "Override.h"

@@ -22,5 +21,3 @@ struct GBCartridgeOverride override;

}; } - -#endif
M src/platform/qt/GDBController.hsrc/platform/qt/GDBController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GDB_CONTROLLER -#define QGBA_GDB_CONTROLLER +#pragma once #include "DebuggerController.h"

@@ -47,5 +46,3 @@

} #endif - -#endif
M src/platform/qt/GDBWindow.hsrc/platform/qt/GDBWindow.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GDB_WINDOW -#define QGBA_GDB_WINDOW +#pragma once #include <QDialog>

@@ -40,5 +39,3 @@ QPushButton* m_breakButton;

}; } - -#endif
M src/platform/qt/GIFView.hsrc/platform/qt/GIFView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GIF_VIEW -#define QGBA_GIF_VIEW +#pragma once #ifdef USE_MAGICK

@@ -55,5 +54,3 @@

} #endif - -#endif
M src/platform/qt/GamepadAxisEvent.hsrc/platform/qt/GamepadAxisEvent.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GAMEPAD_AXIS_EVENT -#define QGBA_GAMEPAD_AXIS_EVENT +#pragma once #include <QEvent>

@@ -42,5 +41,3 @@ GBAKey m_key;

}; } - -#endif
M src/platform/qt/GamepadButtonEvent.hsrc/platform/qt/GamepadButtonEvent.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GAMEPAD_BUTTON_EVENT -#define QGBA_GAMEPAD_BUTTON_EVENT +#pragma once #include <QEvent>

@@ -34,5 +33,3 @@ GBAKey m_key;

}; } - -#endif
M src/platform/qt/GamepadHatEvent.hsrc/platform/qt/GamepadHatEvent.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_GAMEPAD_HAT_EVENT -#define QGBA_GAMEPAD_HAT_EVENT +#pragma once #include <QEvent>

@@ -44,5 +43,3 @@ GBAKey m_key;

}; } - -#endif
M src/platform/qt/IOViewer.hsrc/platform/qt/IOViewer.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_IOVIEWER -#define QGBA_IOVIEWER +#pragma once #include <QDialog> #include <QList>

@@ -71,5 +70,3 @@ std::shared_ptr<CoreController> m_controller;

}; } - -#endif
M src/platform/qt/InputController.hsrc/platform/qt/InputController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_INPUT_CONTROLLER_H -#define QGBA_INPUT_CONTROLLER_H +#pragma once #include "GamepadAxisEvent.h" #include "GamepadHatEvent.h"

@@ -179,5 +178,3 @@ QSet<GBAKey> m_pendingEvents;

}; } - -#endif
M src/platform/qt/InputProfile.hsrc/platform/qt/InputProfile.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_INPUT_PROFILE -#define QGBA_INPUT_PROFILE +#pragma once #include "GamepadAxisEvent.h"

@@ -94,5 +93,3 @@ float m_gyroSensitivity;

}; } - -#endif
M src/platform/qt/KeyEditor.hsrc/platform/qt/KeyEditor.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_KEY_EDITOR -#define QGBA_KEY_EDITOR +#pragma once #include "GamepadAxisEvent.h" #include "GamepadHatEvent.h"

@@ -64,5 +63,3 @@ QTimer m_lastKey;

}; } - -#endif
M src/platform/qt/LoadSaveState.hsrc/platform/qt/LoadSaveState.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_LOAD_SAVE_STATE -#define QGBA_LOAD_SAVE_STATE +#pragma once #include <QWidget>

@@ -57,5 +56,3 @@ QPixmap m_currentImage;

}; } - -#endif
M src/platform/qt/LogController.hsrc/platform/qt/LogController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_LOG_CONTROLLER -#define QGBA_LOG_CONTROLLER +#pragma once #include "GBAApp.h"

@@ -66,5 +65,3 @@

#define LOG(C, L) (*LogController::global())(mLOG_ ## L, _mLOG_CAT_ ## C ()) } - -#endif
M src/platform/qt/LogView.hsrc/platform/qt/LogView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_LOG_VIEW -#define QGBA_LOG_VIEW +#pragma once #include <QQueue> #include <QWidget>

@@ -50,5 +49,3 @@ void clearLine();

}; } - -#endif
M src/platform/qt/MemoryModel.hsrc/platform/qt/MemoryModel.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_MEMORY_MODEL -#define QGBA_MEMORY_MODEL +#pragma once #include <QAbstractScrollArea> #include <QFont>

@@ -99,5 +98,3 @@ int m_currentBank;

}; } - -#endif
M src/platform/qt/MemorySearch.hsrc/platform/qt/MemorySearch.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_MEMORY_SEARCH -#define QGBA_MEMORY_SEARCH +#pragma once #include <memory>

@@ -45,5 +44,3 @@ QByteArray m_string;

}; } - -#endif
M src/platform/qt/MemoryView.hsrc/platform/qt/MemoryView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_MEMORY_VIEW -#define QGBA_MEMORY_VIEW +#pragma once #include "MemoryModel.h"

@@ -38,5 +37,3 @@ QPair<uint32_t, uint32_t> m_selection;

}; } - -#endif
M src/platform/qt/MessagePainter.hsrc/platform/qt/MessagePainter.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_MESSAGE_PAINTER -#define QGBA_MESSAGE_PAINTER +#pragma once #include <QMutex> #include <QObject>

@@ -43,5 +42,3 @@ qreal m_scaleFactor = 1;

}; } - -#endif
M src/platform/qt/MultiplayerController.hsrc/platform/qt/MultiplayerController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_MULTIPLAYER_CONTROLLER -#define QGBA_MULTIPLAYER_CONTROLLER +#pragma once #include <QMutex> #include <QList>

@@ -64,4 +63,3 @@ QMutex m_lock;

}; } -#endif
M src/platform/qt/ObjView.hsrc/platform/qt/ObjView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_OBJ_VIEW -#define QGBA_OBJ_VIEW +#pragma once #include "AssetView.h"

@@ -60,5 +59,3 @@ int m_tileOffset;

}; } - -#endif
M src/platform/qt/Override.hsrc/platform/qt/Override.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_OVERRIDE -#define QGBA_OVERRIDE +#pragma once struct Configuration; struct mCore;

@@ -21,5 +20,3 @@ virtual void save(struct Configuration*) const = 0;

}; } - -#endif
M src/platform/qt/OverrideView.hsrc/platform/qt/OverrideView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_OVERRIDE_VIEW -#define QGBA_OVERRIDE_VIEW +#pragma once #include <QDialog>

@@ -59,5 +58,3 @@ #endif

}; } - -#endif
M src/platform/qt/PaletteView.hsrc/platform/qt/PaletteView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_PALETTE_VIEW -#define QGBA_PALETTE_VIEW +#pragma once #include <QWidget>

@@ -40,5 +39,3 @@ std::shared_ptr<CoreController> m_controller;

}; } - -#endif
M src/platform/qt/PrinterView.hsrc/platform/qt/PrinterView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_PRINTER_VIEW -#define QGBA_PRINTER_VIEW +#pragma once #include <QDialog> #include <QPixmap>

@@ -46,5 +45,3 @@ std::shared_ptr<CoreController> m_controller;

}; } - -#endif
M src/platform/qt/ROMInfo.hsrc/platform/qt/ROMInfo.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_ROM_INFO -#define QGBA_ROM_INFO +#pragma once #include <QWidget>

@@ -27,5 +26,3 @@ Ui::ROMInfo m_ui;

}; } - -#endif
M src/platform/qt/SavestateButton.hsrc/platform/qt/SavestateButton.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_SAVESTATE_BUTTON -#define QGBA_SAVESTATE_BUTTON +#pragma once #include <QAbstractButton>

@@ -19,5 +18,3 @@ virtual void paintEvent(QPaintEvent*) override;

}; } - -#endif
M src/platform/qt/SensorView.hsrc/platform/qt/SensorView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_SENSOR_VIEW -#define QGBA_SENSOR_VIEW +#pragma once #include <QTimer> #include <QDialog>

@@ -53,5 +52,3 @@ void jiggerer(QAbstractButton*, void (InputController::*)(int));

}; } - -#endif
M src/platform/qt/SettingsView.hsrc/platform/qt/SettingsView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_SETTINGS_VIEW -#define QGBA_SETTINGS_VIEW +#pragma once #include <QDialog>

@@ -79,5 +78,3 @@ QString loadSetting(const char* key);

}; } - -#endif
M src/platform/qt/ShaderSelector.hsrc/platform/qt/ShaderSelector.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_SHADER_SELECTOR_H -#define QGBA_SHADER_SELECTOR_H +#pragma once #if defined(BUILD_GL) || defined(BUILD_GLES)

@@ -58,5 +57,3 @@

} #endif - -#endif
M src/platform/qt/ShortcutController.hsrc/platform/qt/ShortcutController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_SHORTCUT_MODEL -#define QGBA_SHORTCUT_MODEL +#pragma once #include "GamepadAxisEvent.h"

@@ -144,5 +143,3 @@ const InputProfile* m_profile = nullptr;

}; } - -#endif
M src/platform/qt/ShortcutView.hsrc/platform/qt/ShortcutView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_SHORTCUT_VIEW -#define QGBA_SHORTCUT_VIEW +#pragma once #include "GamepadAxisEvent.h"

@@ -45,5 +44,3 @@ InputController* m_input = nullptr;

}; } - -#endif
M src/platform/qt/Swatch.hsrc/platform/qt/Swatch.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_SWATCH -#define QGBA_SWATCH +#pragma once #include <QColor> #include <QWidget>

@@ -41,5 +40,3 @@ void updateFill(int index);

}; } - -#endif
M src/platform/qt/TilePainter.hsrc/platform/qt/TilePainter.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_TILE_PAINTER -#define QGBA_TILE_PAINTER +#pragma once #include <QColor> #include <QWidget>

@@ -38,5 +37,3 @@ int m_tileCount;

}; } - -#endif
M src/platform/qt/TileView.hsrc/platform/qt/TileView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_TILE_VIEW -#define QGBA_TILE_VIEW +#pragma once #include "AssetView.h"

@@ -41,5 +40,3 @@ int m_paletteId = 0;

}; } - -#endif
M src/platform/qt/VFileDevice.hsrc/platform/qt/VFileDevice.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_VFILE_DEVICE -#define QGBA_VFILE_DEVICE +#pragma once #include <QFileDevice>

@@ -41,5 +40,3 @@ VFile* m_vf;

}; } - -#endif
M src/platform/qt/VideoDumper.hsrc/platform/qt/VideoDumper.h

@@ -3,8 +3,8 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_VIDEO_DUMPER -#define QGBA_VIDEO_DUMPER +#pragma once + #include <QAbstractVideoSurface> namespace QGBA {

@@ -23,5 +23,3 @@ void imageAvailable(const QImage& image);

}; } - -#endif
M src/platform/qt/VideoView.hsrc/platform/qt/VideoView.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_VIDEO_VIEW -#define QGBA_VIDEO_VIEW +#pragma once #ifdef USE_FFMPEG

@@ -117,5 +116,3 @@

} #endif - -#endif
M src/platform/qt/Window.hsrc/platform/qt/Window.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_WINDOW -#define QGBA_WINDOW +#pragma once #include <QDateTime> #include <QList>

@@ -245,5 +244,3 @@ bool m_lockIntegerScaling;

}; } - -#endif
M src/platform/qt/library/LibraryController.hsrc/platform/qt/library/LibraryController.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_LIBRARY_CONTROLLER -#define QGBA_LIBRARY_CONTROLLER +#pragma once #include <memory>

@@ -125,5 +124,3 @@ LibraryTree* m_libraryTree = nullptr;

}; } - -#endif
M src/platform/qt/library/LibraryGrid.hsrc/platform/qt/library/LibraryGrid.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_LIBRARY_GRID -#define QGBA_LIBRARY_GRID +#pragma once #include <QListWidget>

@@ -46,5 +45,3 @@ LibraryStyle m_currentStyle;

}; } - -#endif
M src/platform/qt/library/LibraryTree.hsrc/platform/qt/library/LibraryTree.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_LIBRARY_TREE -#define QGBA_LIBRARY_TREE +#pragma once #include <QTreeWidget>

@@ -53,5 +52,3 @@ void resizeAllCols();

}; } - -#endif
M src/platform/qt/utils.hsrc/platform/qt/utils.h

@@ -3,8 +3,7 @@ *

* 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 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef QGBA_UTILS_H -#define QGBA_UTILS_H +#pragma once #include <mgba/core/core.h>

@@ -16,5 +15,3 @@ QString niceSizeFormat(size_t filesize);

QString nicePlatformFormat(mPlatform platform); } - -#endif