From 0e792293d84366bdbc3fca26b8fc4bd63526ca9d Mon Sep 17 00:00:00 2001 From: Bastien JAUNY Date: Sun, 24 Oct 2021 11:35:18 +0200 Subject: [PATCH] Replaced include guards with pragma once --- src/gui/Src/BasicView/AbstractSearchList.h | 5 +---- src/gui/Src/BasicView/AbstractTableView.h | 5 +---- src/gui/Src/BasicView/Disassembly.h | 5 +---- src/gui/Src/BasicView/HeaderButton.h | 6 +----- src/gui/Src/BasicView/HexDump.h | 5 +---- src/gui/Src/BasicView/HistoryLineEdit.h | 5 +---- src/gui/Src/BasicView/LabeledSplitter.h | 5 +---- src/gui/Src/BasicView/LabeledSplitterDetachedWindow.h | 6 +----- src/gui/Src/BasicView/ReferenceView.h | 5 +---- src/gui/Src/BasicView/SearchListView.h | 5 +---- src/gui/Src/BasicView/ShortcutEdit.h | 5 +---- src/gui/Src/BasicView/StdIconSearchListView.h | 4 +--- src/gui/Src/BasicView/StdIconTable.h | 5 +---- src/gui/Src/BasicView/StdSearchListView.h | 4 +--- src/gui/Src/BasicView/StdTable.h | 5 +---- src/gui/Src/Bridge/Bridge.h | 5 +---- src/gui/Src/Bridge/BridgeResult.h | 5 +---- src/gui/Src/Disassembler/QBeaEngine.h | 5 +---- src/gui/Src/Disassembler/ZydisTokenizer.h | 5 +---- src/gui/Src/Exports.h | 6 +----- src/gui/Src/Gui/AboutDialog.h | 5 +---- src/gui/Src/Gui/AppearanceDialog.h | 5 +---- src/gui/Src/Gui/AssembleDialog.h | 5 +---- src/gui/Src/Gui/AttachDialog.h | 5 +---- src/gui/Src/Gui/BreakpointsView.h | 5 +---- src/gui/Src/Gui/BrowseDialog.h | 5 +---- src/gui/Src/Gui/CPUArgumentWidget.h | 5 +---- src/gui/Src/Gui/CPUDisassembly.h | 5 +---- src/gui/Src/Gui/CPUDump.h | 5 +---- src/gui/Src/Gui/CPUInfoBox.h | 5 +---- src/gui/Src/Gui/CPUMultiDump.h | 5 +---- src/gui/Src/Gui/CPURegistersView.h | 5 +---- src/gui/Src/Gui/CPUSideBar.h | 5 +---- src/gui/Src/Gui/CPUStack.h | 5 +---- src/gui/Src/Gui/CPUWidget.h | 5 +---- src/gui/Src/Gui/CalculatorDialog.h | 5 +---- src/gui/Src/Gui/CallStackView.h | 5 +---- src/gui/Src/Gui/CloseDialog.h | 5 +---- src/gui/Src/Gui/CodepageSelectionDialog.h | 5 +---- src/gui/Src/Gui/ColumnReorderDialog.h | 5 +---- src/gui/Src/Gui/ComboBoxDialog.h | 5 +---- src/gui/Src/Gui/CommandLineEdit.h | 5 +---- src/gui/Src/Gui/CustomizeMenuDialog.h | 5 +---- src/gui/Src/Gui/DebugStatusLabel.h | 5 +---- src/gui/Src/Gui/DisassemblerGraphView.h | 5 +---- src/gui/Src/Gui/DisassemblyPopup.h | 5 +---- src/gui/Src/Gui/EditBreakpointDialog.h | 5 +---- src/gui/Src/Gui/EditFloatRegister.h | 5 +---- src/gui/Src/Gui/ExceptionRangeDialog.h | 5 +---- src/gui/Src/Gui/FavouriteTools.h | 5 +---- src/gui/Src/Gui/GotoDialog.h | 5 +---- src/gui/Src/Gui/HandlesView.h | 5 +---- src/gui/Src/Gui/HexEditDialog.h | 5 +---- src/gui/Src/Gui/HexLineEdit.h | 5 +---- src/gui/Src/Gui/LineEditDialog.h | 5 +---- src/gui/Src/Gui/LocalVarsView.h | 6 ++---- src/gui/Src/Gui/LogStatusLabel.h | 5 +---- src/gui/Src/Gui/LogView.h | 5 +---- src/gui/Src/Gui/MainWindow.h | 5 +---- src/gui/Src/Gui/MemoryMapView.h | 5 +---- src/gui/Src/Gui/MessagesBreakpoints.h | 5 +---- src/gui/Src/Gui/MultiItemsSelectWindow.h | 5 +---- src/gui/Src/Gui/NotepadView.h | 5 +---- src/gui/Src/Gui/NotesManager.h | 5 +---- src/gui/Src/Gui/PageMemoryRights.h | 5 +---- src/gui/Src/Gui/PatchDialog.h | 5 +---- src/gui/Src/Gui/PatchDialogGroupSelector.h | 5 +---- src/gui/Src/Gui/ReferenceManager.h | 5 +---- src/gui/Src/Gui/RegistersView.h | 5 +---- src/gui/Src/Gui/SEHChainView.h | 5 +---- src/gui/Src/Gui/ScriptView.h | 5 +---- src/gui/Src/Gui/SelectFields.h | 5 +---- src/gui/Src/Gui/SettingsDialog.h | 5 +---- src/gui/Src/Gui/ShortcutsDialog.h | 5 +---- src/gui/Src/Gui/SimpleTraceDialog.h | 5 +---- src/gui/Src/Gui/SourceView.h | 5 +---- src/gui/Src/Gui/SourceViewerManager.h | 5 +---- src/gui/Src/Gui/StructWidget.h | 5 +---- src/gui/Src/Gui/SymbolView.h | 5 +---- src/gui/Src/Gui/TabBar.h | 5 +---- src/gui/Src/Gui/TabWidget.h | 6 +----- src/gui/Src/Gui/ThreadView.h | 5 +---- src/gui/Src/Gui/TimeWastedCounter.h | 5 +---- src/gui/Src/Gui/VirtualModDialog.h | 5 +---- src/gui/Src/Gui/WatchView.h | 6 ++---- src/gui/Src/Gui/WordEditDialog.h | 5 +---- src/gui/Src/Gui/XrefBrowseDialog.h | 5 +---- src/gui/Src/Imports.h | 5 +---- src/gui/Src/Memory/MemoryPage.h | 5 +---- src/gui/Src/QHexEdit/ArrayCommand.h | 5 +---- src/gui/Src/QHexEdit/QHexEdit.h | 6 +----- src/gui/Src/QHexEdit/QHexEditPrivate.h | 6 +----- src/gui/Src/QHexEdit/XByteArray.h | 5 +---- src/gui/Src/Tracer/TraceBrowser.h | 5 +---- src/gui/Src/Tracer/TraceFileReader.h | 5 +---- src/gui/Src/Tracer/TraceFileReaderInternal.h | 1 + src/gui/Src/Tracer/TraceFileSearch.h | 5 ++--- src/gui/Src/Tracer/TraceInfoBox.h | 6 ++---- src/gui/Src/Tracer/TraceRegisters.h | 6 ++---- src/gui/Src/Tracer/TraceWidget.h | 5 +---- src/gui/Src/Utils/ActionHelpers.h | 5 +---- src/gui/Src/Utils/BackgroundFlickerThread.h | 5 +---- src/gui/Src/Utils/Breakpoints.h | 5 +---- src/gui/Src/Utils/CachedFontMetrics.h | 5 +---- src/gui/Src/Utils/CodeFolding.h | 6 ++---- src/gui/Src/Utils/CommonActions.h | 6 +----- src/gui/Src/Utils/Configuration.h | 5 +---- src/gui/Src/Utils/EncodeMap.h | 5 +---- src/gui/Src/Utils/FlickerThread.h | 5 +---- src/gui/Src/Utils/HexValidator.h | 6 ++---- src/gui/Src/Utils/LongLongValidator.h | 5 +---- src/gui/Src/Utils/MRUList.h | 5 +---- src/gui/Src/Utils/MainWindowCloseThread.h | 5 +---- src/gui/Src/Utils/MenuBuilder.h | 5 +---- src/gui/Src/Utils/MethodInvoker.h | 5 +---- src/gui/Src/Utils/MiscUtil.h | 4 +--- src/gui/Src/Utils/RichTextPainter.h | 5 +---- src/gui/Src/Utils/StringUtil.h | 5 +---- src/gui/Src/Utils/SymbolAutoCompleteModel.h | 5 ++--- src/gui/Src/Utils/UpdateChecker.h | 5 +---- src/gui/Src/Utils/VaHistory.h | 6 ++---- src/gui/Src/Utils/ValidateExpressionThread.h | 5 +---- src/gui/Src/main.h | 5 +---- src/zydis_wrapper/ZydisExportConfig.h | 4 +--- src/zydis_wrapper/zydis_wrapper.h | 5 +---- 125 files changed, 134 insertions(+), 497 deletions(-) diff --git a/src/gui/Src/BasicView/AbstractSearchList.h b/src/gui/Src/BasicView/AbstractSearchList.h index f5460543..e537c440 100644 --- a/src/gui/Src/BasicView/AbstractSearchList.h +++ b/src/gui/Src/BasicView/AbstractSearchList.h @@ -1,5 +1,4 @@ -#ifndef ABSTRACTSEARCHLIST_H -#define ABSTRACTSEARCHLIST_H +#pragma once #include "AbstractStdTable.h" @@ -57,5 +56,3 @@ public: return false; } }; - -#endif // ABSTRACTSEARCHLIST_H diff --git a/src/gui/Src/BasicView/AbstractTableView.h b/src/gui/Src/BasicView/AbstractTableView.h index c5b388fb..e2981def 100644 --- a/src/gui/Src/BasicView/AbstractTableView.h +++ b/src/gui/Src/BasicView/AbstractTableView.h @@ -1,5 +1,4 @@ -#ifndef ABSTRACTTABLEVIEW_H -#define ABSTRACTTABLEVIEW_H +#pragma once #include #include @@ -236,5 +235,3 @@ protected: // Disassembly Popup DisassemblyPopup* mDisassemblyPopup; }; - -#endif // ABSTRACTTABLEVIEW_H diff --git a/src/gui/Src/BasicView/Disassembly.h b/src/gui/Src/BasicView/Disassembly.h index f2c65c10..d02c7bdd 100644 --- a/src/gui/Src/BasicView/Disassembly.h +++ b/src/gui/Src/BasicView/Disassembly.h @@ -1,5 +1,4 @@ -#ifndef DISASSEMBLY_H -#define DISASSEMBLY_H +#pragma once #include "AbstractTableView.h" #include "QBeaEngine.h" @@ -241,5 +240,3 @@ protected: bool mNoCurrentModuleText; bool mIsMain = false; }; - -#endif // DISASSEMBLY_H diff --git a/src/gui/Src/BasicView/HeaderButton.h b/src/gui/Src/BasicView/HeaderButton.h index 92d39b8d..70906556 100644 --- a/src/gui/Src/BasicView/HeaderButton.h +++ b/src/gui/Src/BasicView/HeaderButton.h @@ -1,5 +1,4 @@ -#ifndef HEADERBUTTON_H -#define HEADERBUTTON_H +#pragma once #include @@ -15,6 +14,3 @@ signals: public slots: }; - -#endif // HEADERBUTTON_H - diff --git a/src/gui/Src/BasicView/HexDump.h b/src/gui/Src/BasicView/HexDump.h index b9abead5..c1f392bd 100644 --- a/src/gui/Src/BasicView/HexDump.h +++ b/src/gui/Src/BasicView/HexDump.h @@ -1,5 +1,4 @@ -#ifndef _HEXDUMP_H -#define _HEXDUMP_H +#pragma once #include "AbstractTableView.h" #include "RichTextPainter.h" @@ -224,5 +223,3 @@ protected: duint mUnderlineRangeStartVa = 0; duint mUnderlineRangeEndVa = 0; }; - -#endif // _HEXDUMP_H diff --git a/src/gui/Src/BasicView/HistoryLineEdit.h b/src/gui/Src/BasicView/HistoryLineEdit.h index 8bc9ca06..6dd421c9 100644 --- a/src/gui/Src/BasicView/HistoryLineEdit.h +++ b/src/gui/Src/BasicView/HistoryLineEdit.h @@ -1,5 +1,4 @@ -#ifndef HISTORYLINEEDIT_H -#define HISTORYLINEEDIT_H +#pragma once #include #include @@ -27,5 +26,3 @@ private: bool bSixPressed; }; - -#endif // HISTORYLINEEDIT_H diff --git a/src/gui/Src/BasicView/LabeledSplitter.h b/src/gui/Src/BasicView/LabeledSplitter.h index c73c558a..fcfba876 100644 --- a/src/gui/Src/BasicView/LabeledSplitter.h +++ b/src/gui/Src/BasicView/LabeledSplitter.h @@ -1,5 +1,4 @@ -#ifndef LABELEDSPLITTER_H -#define LABELEDSPLITTER_H +#pragma once #include @@ -44,5 +43,3 @@ private: QList mNames; QList mWindows; }; - -#endif //LABELEDSPLITTER_H diff --git a/src/gui/Src/BasicView/LabeledSplitterDetachedWindow.h b/src/gui/Src/BasicView/LabeledSplitterDetachedWindow.h index 25a0ef9c..b8c9f4e0 100644 --- a/src/gui/Src/BasicView/LabeledSplitterDetachedWindow.h +++ b/src/gui/Src/BasicView/LabeledSplitterDetachedWindow.h @@ -1,5 +1,4 @@ -#ifndef LABELEDSPLITTERDETACHEDWINDOW_H -#define LABELEDSPLITTERDETACHEDWINDOW_H +#pragma once #include #include @@ -46,6 +45,3 @@ protected: LabeledSplitter* mSplitterWidget; }; - - -#endif //LABELEDSPLITTERDETACHEDWINDOW_H diff --git a/src/gui/Src/BasicView/ReferenceView.h b/src/gui/Src/BasicView/ReferenceView.h index 53df62f7..6222868b 100644 --- a/src/gui/Src/BasicView/ReferenceView.h +++ b/src/gui/Src/BasicView/ReferenceView.h @@ -1,5 +1,4 @@ -#ifndef REFERENCEVIEW_H -#define REFERENCEVIEW_H +#pragma once #include #include @@ -81,5 +80,3 @@ private: void mouseReleaseEvent(QMouseEvent* event); }; - -#endif // REFERENCEVIEW_H diff --git a/src/gui/Src/BasicView/SearchListView.h b/src/gui/Src/BasicView/SearchListView.h index dae25d8a..30dfe930 100644 --- a/src/gui/Src/BasicView/SearchListView.h +++ b/src/gui/Src/BasicView/SearchListView.h @@ -1,5 +1,4 @@ -#ifndef SEARCHLISTVIEW_H -#define SEARCHLISTVIEW_H +#pragma once #include #include @@ -49,5 +48,3 @@ private: AbstractSearchList* mAbstractSearchList; }; - -#endif // SEARCHLISTVIEW_H diff --git a/src/gui/Src/BasicView/ShortcutEdit.h b/src/gui/Src/BasicView/ShortcutEdit.h index 915bf52e..03e7665a 100644 --- a/src/gui/Src/BasicView/ShortcutEdit.h +++ b/src/gui/Src/BasicView/ShortcutEdit.h @@ -1,5 +1,4 @@ -#ifndef SHORTCUTEDIT_H -#define SHORTCUTEDIT_H +#pragma once #include #include @@ -26,5 +25,3 @@ signals: protected: void keyPressEvent(QKeyEvent* event); }; - -#endif // SHORTCUTEDIT_H diff --git a/src/gui/Src/BasicView/StdIconSearchListView.h b/src/gui/Src/BasicView/StdIconSearchListView.h index f2e47dbd..fee385cd 100644 --- a/src/gui/Src/BasicView/StdIconSearchListView.h +++ b/src/gui/Src/BasicView/StdIconSearchListView.h @@ -1,5 +1,4 @@ -#ifndef STDICONSEARCHLISTVIEW_H -#define STDICONSEARCHLISTVIEW_H +#pragma once #include "StdSearchListView.h" #include "StdIconTable.h" @@ -22,4 +21,3 @@ protected: friend class SymbolView; friend class Bridge; }; -#endif // STDICONSEARCHLISTVIEW_H diff --git a/src/gui/Src/BasicView/StdIconTable.h b/src/gui/Src/BasicView/StdIconTable.h index 6bee1f28..ea669b83 100644 --- a/src/gui/Src/BasicView/StdIconTable.h +++ b/src/gui/Src/BasicView/StdIconTable.h @@ -1,5 +1,4 @@ -#ifndef STDICONTABLE_H -#define STDICONTABLE_H +#pragma once #include "StdTable.h" @@ -23,5 +22,3 @@ protected: std::vector mIcon; //listof(row) where row = (listof(col) where col = CellData) int mIconColumn; }; - -#endif // STDICONTABLE_H diff --git a/src/gui/Src/BasicView/StdSearchListView.h b/src/gui/Src/BasicView/StdSearchListView.h index 739c4773..9e1c86a5 100644 --- a/src/gui/Src/BasicView/StdSearchListView.h +++ b/src/gui/Src/BasicView/StdSearchListView.h @@ -1,5 +1,4 @@ -#ifndef STDSEARCHLISTVIEW_H -#define STDSEARCHLISTVIEW_H +#pragma once #include "SearchListView.h" #include "StdTableSearchList.h" @@ -36,4 +35,3 @@ protected: StdTable* stdList(); StdTable* stdSearchList(); }; -#endif // STDSEARCHLISTVIEW_H diff --git a/src/gui/Src/BasicView/StdTable.h b/src/gui/Src/BasicView/StdTable.h index 1931c8bd..43effb8c 100644 --- a/src/gui/Src/BasicView/StdTable.h +++ b/src/gui/Src/BasicView/StdTable.h @@ -1,5 +1,4 @@ -#ifndef STDTABLE_H -#define STDTABLE_H +#pragma once #include "AbstractStdTable.h" @@ -39,5 +38,3 @@ protected: std::vector> mData; //listof(row) where row = (listof(col) where col = CellData) std::vector mColumnSortFunctions; }; - -#endif // STDTABLE_H diff --git a/src/gui/Src/Bridge/Bridge.h b/src/gui/Src/Bridge/Bridge.h index 0e0c6cce..c63e4298 100644 --- a/src/gui/Src/Bridge/Bridge.h +++ b/src/gui/Src/Bridge/Bridge.h @@ -1,5 +1,4 @@ -#ifndef BRIDGE_H -#define BRIDGE_H +#pragma once #include #include @@ -171,5 +170,3 @@ private: DWORD dwMainThreadId = 0; volatile bool dbgStopped = false; }; - -#endif // BRIDGE_H diff --git a/src/gui/Src/Bridge/BridgeResult.h b/src/gui/Src/Bridge/BridgeResult.h index dd3bf482..c52aa07d 100644 --- a/src/gui/Src/Bridge/BridgeResult.h +++ b/src/gui/Src/Bridge/BridgeResult.h @@ -1,5 +1,4 @@ -#ifndef BRIDGERESULT_H -#define BRIDGERESULT_H +#pragma once #include "Imports.h" @@ -45,5 +44,3 @@ public: private: Type mType; }; - -#endif // BRIDGERESULT_H diff --git a/src/gui/Src/Disassembler/QBeaEngine.h b/src/gui/Src/Disassembler/QBeaEngine.h index 376fb9d7..7f1ffaa0 100644 --- a/src/gui/Src/Disassembler/QBeaEngine.h +++ b/src/gui/Src/Disassembler/QBeaEngine.h @@ -1,5 +1,4 @@ -#ifndef QBEAENGINE_H -#define QBEAENGINE_H +#pragma once #include #include @@ -74,5 +73,3 @@ private: }; void formatOpcodeString(const Instruction_t & inst, RichTextPainter::List & list, std::vector> & realBytes); - -#endif // QBEAENGINE_H diff --git a/src/gui/Src/Disassembler/ZydisTokenizer.h b/src/gui/Src/Disassembler/ZydisTokenizer.h index 679693cd..ff167dc3 100644 --- a/src/gui/Src/Disassembler/ZydisTokenizer.h +++ b/src/gui/Src/Disassembler/ZydisTokenizer.h @@ -1,5 +1,4 @@ -#ifndef ZYDISTOKENIZER_H -#define ZYDISTOKENIZER_H +#pragma once #include #include "RichTextPainter.h" @@ -210,5 +209,3 @@ private: bool tokenizePtrOperand(const ZydisDecodedOperand & op); bool tokenizeInvalidOperand(const ZydisDecodedOperand & op); }; - -#endif // ZYDISTOKENIZER_H diff --git a/src/gui/Src/Exports.h b/src/gui/Src/Exports.h index 095ad3dc..64234a39 100644 --- a/src/gui/Src/Exports.h +++ b/src/gui/Src/Exports.h @@ -1,5 +1,4 @@ -#ifndef EXPORTS_H -#define EXPORTS_H +#pragma once #include "Imports.h" @@ -12,6 +11,3 @@ extern "C" __declspec(dllexport) int _gui_guiinit(int argc, char* argv[]); extern "C" __declspec(dllexport) void* _gui_sendmessage(GUIMSG type, void* param1, void* param2); extern "C" __declspec(dllexport) const char* _gui_translate_text(const char* source); #endif - - -#endif // EXPORTS_Hb diff --git a/src/gui/Src/Gui/AboutDialog.h b/src/gui/Src/Gui/AboutDialog.h index 158f4d56..0503afcc 100644 --- a/src/gui/Src/Gui/AboutDialog.h +++ b/src/gui/Src/Gui/AboutDialog.h @@ -1,5 +1,4 @@ -#ifndef ABOUTDIALOG_H -#define ABOUTDIALOG_H +#pragma once #include @@ -28,5 +27,3 @@ private: Ui::AboutDialog* ui; UpdateChecker* mUpdateChecker; }; - -#endif // ABOUTDIALOG_H diff --git a/src/gui/Src/Gui/AppearanceDialog.h b/src/gui/Src/Gui/AppearanceDialog.h index ac32e831..e8bb0a2c 100644 --- a/src/gui/Src/Gui/AppearanceDialog.h +++ b/src/gui/Src/Gui/AppearanceDialog.h @@ -1,5 +1,4 @@ -#ifndef APPEARANCEDIALOG_H -#define APPEARANCEDIALOG_H +#pragma once #include #include @@ -109,5 +108,3 @@ private: void selectColor(QLineEdit* lineEdit, QColorDialog::ColorDialogOptions options = QColorDialog::ColorDialogOptions()); static QString colorToString(const QColor & color); }; - -#endif // APPEARANCEDIALOG_H diff --git a/src/gui/Src/Gui/AssembleDialog.h b/src/gui/Src/Gui/AssembleDialog.h index 66c19cfb..a80bea4d 100644 --- a/src/gui/Src/Gui/AssembleDialog.h +++ b/src/gui/Src/Gui/AssembleDialog.h @@ -1,5 +1,4 @@ -#ifndef ASSEMBLEDIALOG_H -#define ASSEMBLEDIALOG_H +#pragma once #include #include @@ -49,5 +48,3 @@ private: duint mSelectedInstrVa; ValidateExpressionThread* mValidateThread; }; - -#endif // ASSEMBLEDIALOG_H diff --git a/src/gui/Src/Gui/AttachDialog.h b/src/gui/Src/Gui/AttachDialog.h index 25b52435..62ed33a6 100644 --- a/src/gui/Src/Gui/AttachDialog.h +++ b/src/gui/Src/Gui/AttachDialog.h @@ -1,5 +1,4 @@ -#ifndef ATTACHDIALOG_H -#define ATTACHDIALOG_H +#pragma once #include @@ -41,5 +40,3 @@ private: ColCommandLine, }; }; - -#endif // ATTACHDIALOG_H diff --git a/src/gui/Src/Gui/BreakpointsView.h b/src/gui/Src/Gui/BreakpointsView.h index 7d8981bd..5b7a9466 100644 --- a/src/gui/Src/Gui/BreakpointsView.h +++ b/src/gui/Src/Gui/BreakpointsView.h @@ -1,5 +1,4 @@ -#ifndef BREAKPOINTSVIEW_H -#define BREAKPOINTSVIEW_H +#pragma once #include #include "Bridge.h" @@ -106,5 +105,3 @@ private: } } }; - -#endif // BREAKPOINTSVIEW_H diff --git a/src/gui/Src/Gui/BrowseDialog.h b/src/gui/Src/Gui/BrowseDialog.h index 0dcdfd1e..43f8c0fc 100644 --- a/src/gui/Src/Gui/BrowseDialog.h +++ b/src/gui/Src/Gui/BrowseDialog.h @@ -1,5 +1,4 @@ -#ifndef BROWSEDIALOG_H -#define BROWSEDIALOG_H +#pragma once #include @@ -26,5 +25,3 @@ private: QString mFilter; bool mSave; }; - -#endif // BROWSEDIALOG_H diff --git a/src/gui/Src/Gui/CPUArgumentWidget.h b/src/gui/Src/Gui/CPUArgumentWidget.h index 246676b5..da6d3845 100644 --- a/src/gui/Src/Gui/CPUArgumentWidget.h +++ b/src/gui/Src/Gui/CPUArgumentWidget.h @@ -1,5 +1,4 @@ -#ifndef CPUARGUMENTWIDGET_H -#define CPUARGUMENTWIDGET_H +#pragma once #include #include @@ -153,5 +152,3 @@ private: void updateStackOffset(bool iscall); }; - -#endif // CPUARGUMENTWIDGET_H diff --git a/src/gui/Src/Gui/CPUDisassembly.h b/src/gui/Src/Gui/CPUDisassembly.h index b1596fac..e04e50d7 100644 --- a/src/gui/Src/Gui/CPUDisassembly.h +++ b/src/gui/Src/Gui/CPUDisassembly.h @@ -1,5 +1,4 @@ -#ifndef CPUDISASSEMBLY_H -#define CPUDISASSEMBLY_H +#pragma once #include "Disassembly.h" @@ -165,5 +164,3 @@ private: bool mHighlightContextMenu = false; CommonActions* mCommonActions; }; - -#endif // CPUDISASSEMBLY_H diff --git a/src/gui/Src/Gui/CPUDump.h b/src/gui/Src/Gui/CPUDump.h index 2b65612b..70056092 100644 --- a/src/gui/Src/Gui/CPUDump.h +++ b/src/gui/Src/Gui/CPUDump.h @@ -1,5 +1,4 @@ -#ifndef CPUDUMP_H -#define CPUDUMP_H +#pragma once #include "HexDump.h" @@ -128,5 +127,3 @@ private: void setView(ViewEnum_t view); }; - -#endif // CPUDUMP_H diff --git a/src/gui/Src/Gui/CPUInfoBox.h b/src/gui/Src/Gui/CPUInfoBox.h index 885b0a6f..ee2c166d 100644 --- a/src/gui/Src/Gui/CPUInfoBox.h +++ b/src/gui/Src/Gui/CPUInfoBox.h @@ -1,5 +1,4 @@ -#ifndef INFOBOX_H -#define INFOBOX_H +#pragma once #include "StdTable.h" @@ -54,5 +53,3 @@ private: QAction* mCopyOffsetAction; QAction* mCopyLineAction; }; - -#endif // INFOBOX_H diff --git a/src/gui/Src/Gui/CPUMultiDump.h b/src/gui/Src/Gui/CPUMultiDump.h index 92c80acb..98c7de51 100644 --- a/src/gui/Src/Gui/CPUMultiDump.h +++ b/src/gui/Src/Gui/CPUMultiDump.h @@ -1,5 +1,4 @@ -#ifndef CPUMULTIDUMP_H -#define CPUMULTIDUMP_H +#pragma once #include #include "TabWidget.h" @@ -52,5 +51,3 @@ private: void SwitchToDumpWindow(); void SwitchToWatchWindow(); }; - -#endif // CPUMULTIDUMP_H diff --git a/src/gui/Src/Gui/CPURegistersView.h b/src/gui/Src/Gui/CPURegistersView.h index 5e1f0bdb..ca6d77a7 100644 --- a/src/gui/Src/Gui/CPURegistersView.h +++ b/src/gui/Src/Gui/CPURegistersView.h @@ -1,5 +1,4 @@ -#ifndef CPUREGISTERSVIEW_H -#define CPUREGISTERSVIEW_H +#pragma once #include "RegistersView.h" @@ -54,5 +53,3 @@ private: QAction* wCM_Decrementx87Stack; QAction* wCM_Highlight; }; - -#endif // CPUREGISTERSVIEW_H diff --git a/src/gui/Src/Gui/CPUSideBar.h b/src/gui/Src/Gui/CPUSideBar.h index 2a4b8abd..417d1fed 100644 --- a/src/gui/Src/Gui/CPUSideBar.h +++ b/src/gui/Src/Gui/CPUSideBar.h @@ -1,5 +1,4 @@ -#ifndef CPUSIDEBAR_H -#define CPUSIDEBAR_H +#pragma once #include #include @@ -119,5 +118,3 @@ private: QPen mUnconditionalBackwardsPen; QPen mConditionalBackwardsPen; }; - -#endif // CPUSIDEBAR_H diff --git a/src/gui/Src/Gui/CPUStack.h b/src/gui/Src/Gui/CPUStack.h index 9f8e85c1..0907b81a 100644 --- a/src/gui/Src/Gui/CPUStack.h +++ b/src/gui/Src/Gui/CPUStack.h @@ -1,5 +1,4 @@ -#ifndef CPUSTACK_H -#define CPUSTACK_H +#pragma once #include "HexDump.h" @@ -83,5 +82,3 @@ private: std::vector mCallstack; static int CPUStack::getCurrentFrame(const std::vector & mCallstack, duint wVA); }; - -#endif // CPUSTACK_H diff --git a/src/gui/Src/Gui/CPUWidget.h b/src/gui/Src/Gui/CPUWidget.h index 0831d82a..5822d37c 100644 --- a/src/gui/Src/Gui/CPUWidget.h +++ b/src/gui/Src/Gui/CPUWidget.h @@ -1,5 +1,4 @@ -#ifndef CPUWIDGET_H -#define CPUWIDGET_H +#pragma once #include #include "Bridge.h" @@ -70,5 +69,3 @@ private slots: void attachGraph(QWidget* widget); void detachGraph(); }; - -#endif // CPUWIDGET_H diff --git a/src/gui/Src/Gui/CalculatorDialog.h b/src/gui/Src/Gui/CalculatorDialog.h index 5172d435..142c0243 100644 --- a/src/gui/Src/Gui/CalculatorDialog.h +++ b/src/gui/Src/Gui/CalculatorDialog.h @@ -1,5 +1,4 @@ -#ifndef CALCULATORDIALOG_H -#define CALCULATORDIALOG_H +#pragma once #include #include "Imports.h" @@ -56,5 +55,3 @@ private: Ui::CalculatorDialog* ui; QString inFormat(const duint val, CalculatorDialog::NUMBERFORMAT NF) const; }; - -#endif // CALCULATORDIALOG_H diff --git a/src/gui/Src/Gui/CallStackView.h b/src/gui/Src/Gui/CallStackView.h index 5ab778e2..cb0b421e 100644 --- a/src/gui/Src/Gui/CallStackView.h +++ b/src/gui/Src/Gui/CallStackView.h @@ -1,5 +1,4 @@ -#ifndef CALLSTACKVIEW_H -#define CALLSTACKVIEW_H +#pragma once #include "StdTable.h" class CommonActions; @@ -39,5 +38,3 @@ private: CommonActions* mCommonActions; bool isSelectionValid(); }; - -#endif // CALLSTACKVIEW_H diff --git a/src/gui/Src/Gui/CloseDialog.h b/src/gui/Src/Gui/CloseDialog.h index 6996ae73..acf3dcae 100644 --- a/src/gui/Src/Gui/CloseDialog.h +++ b/src/gui/Src/Gui/CloseDialog.h @@ -1,5 +1,4 @@ -#ifndef CLOSEDIALOG_H -#define CLOSEDIALOG_H +#pragma once #include @@ -24,5 +23,3 @@ private: Ui::CloseDialog* ui; bool bCanClose; }; - -#endif // CLOSEDIALOG_H diff --git a/src/gui/Src/Gui/CodepageSelectionDialog.h b/src/gui/Src/Gui/CodepageSelectionDialog.h index 144d284d..f6397ff5 100644 --- a/src/gui/Src/Gui/CodepageSelectionDialog.h +++ b/src/gui/Src/Gui/CodepageSelectionDialog.h @@ -1,5 +1,4 @@ -#ifndef CODEPAGESELECTIONDIALOG_H -#define CODEPAGESELECTIONDIALOG_H +#pragma once #include @@ -21,5 +20,3 @@ private: Ui::CodepageSelectionDialog* ui; QList mCodepages; }; - -#endif // CODEPAGESELECTIONDIALOG_H diff --git a/src/gui/Src/Gui/ColumnReorderDialog.h b/src/gui/Src/Gui/ColumnReorderDialog.h index 7ef73b8f..77ab9fb7 100644 --- a/src/gui/Src/Gui/ColumnReorderDialog.h +++ b/src/gui/Src/Gui/ColumnReorderDialog.h @@ -1,5 +1,4 @@ -#ifndef COLUMNREORDERDIALOG_H -#define COLUMNREORDERDIALOG_H +#pragma once #include @@ -30,5 +29,3 @@ private: Ui::ColumnReorderDialog* ui; AbstractTableView* mParent; }; - -#endif // COLUMNREORDERDIALOG_H diff --git a/src/gui/Src/Gui/ComboBoxDialog.h b/src/gui/Src/Gui/ComboBoxDialog.h index 3d28575c..a5e856df 100644 --- a/src/gui/Src/Gui/ComboBoxDialog.h +++ b/src/gui/Src/Gui/ComboBoxDialog.h @@ -1,5 +1,4 @@ -#ifndef COMBOBOXDIALOG_H -#define COMBOBOXDIALOG_H +#pragma once #include @@ -34,5 +33,3 @@ private slots: private: Ui::ComboBoxDialog* ui; }; - -#endif // COMBOBOXDIALOG_H diff --git a/src/gui/Src/Gui/CommandLineEdit.h b/src/gui/Src/Gui/CommandLineEdit.h index ca0663a7..445c0f95 100644 --- a/src/gui/Src/Gui/CommandLineEdit.h +++ b/src/gui/Src/Gui/CommandLineEdit.h @@ -1,5 +1,4 @@ -#ifndef COMMANDLINEEDIT_H -#define COMMANDLINEEDIT_H +#pragma once #include "Bridge/bridgemain.h" #include "HistoryLineEdit.h" @@ -42,5 +41,3 @@ private: bool mDefaultCompletionsUpdated = false; int mCurrentScriptIndex; }; - -#endif // COMMANDLINEEDIT_H diff --git a/src/gui/Src/Gui/CustomizeMenuDialog.h b/src/gui/Src/Gui/CustomizeMenuDialog.h index d55b054b..e226dfaa 100644 --- a/src/gui/Src/Gui/CustomizeMenuDialog.h +++ b/src/gui/Src/Gui/CustomizeMenuDialog.h @@ -1,5 +1,4 @@ -#ifndef CUSTOMIZEMENUDIALOG_H -#define CUSTOMIZEMENUDIALOG_H +#pragma once #include @@ -23,5 +22,3 @@ public slots: private: Ui::CustomizeMenuDialog* ui; }; - -#endif // CUSTOMIZEMENUDIALOG_H diff --git a/src/gui/Src/Gui/DebugStatusLabel.h b/src/gui/Src/Gui/DebugStatusLabel.h index 20a8fcf1..9ae7c8f2 100644 --- a/src/gui/Src/Gui/DebugStatusLabel.h +++ b/src/gui/Src/Gui/DebugStatusLabel.h @@ -1,5 +1,4 @@ -#ifndef LABELCLASS_H -#define LABELCLASS_H +#pragma once #include #include @@ -24,5 +23,3 @@ private: QString mStatusTexts[4]; QString mState; }; - -#endif // LABELCLASS_H diff --git a/src/gui/Src/Gui/DisassemblerGraphView.h b/src/gui/Src/Gui/DisassemblerGraphView.h index 2e2b9f60..b9014cd5 100644 --- a/src/gui/Src/Gui/DisassemblerGraphView.h +++ b/src/gui/Src/Gui/DisassemblerGraphView.h @@ -1,5 +1,4 @@ -#ifndef DISASSEMBLERGRAPHVIEW_H -#define DISASSEMBLERGRAPHVIEW_H +#pragma once #include #include @@ -384,5 +383,3 @@ private: void addReferenceAction(QMenu* menu, duint addr, const QString & description); }; - -#endif // DISASSEMBLERGRAPHVIEW_H diff --git a/src/gui/Src/Gui/DisassemblyPopup.h b/src/gui/Src/Gui/DisassemblyPopup.h index d0b223f0..31a8c288 100644 --- a/src/gui/Src/Gui/DisassemblyPopup.h +++ b/src/gui/Src/Gui/DisassemblyPopup.h @@ -1,5 +1,4 @@ -#ifndef DISASSEMBLYPOPUP_H -#define DISASSEMBLYPOPUP_H +#pragma once #include #include "Imports.h" @@ -45,5 +44,3 @@ protected: std::vector> mDisassemblyToken; }; - -#endif // DISASSEMBLYPOPUP_H diff --git a/src/gui/Src/Gui/EditBreakpointDialog.h b/src/gui/Src/Gui/EditBreakpointDialog.h index f282733c..43cc04cb 100644 --- a/src/gui/Src/Gui/EditBreakpointDialog.h +++ b/src/gui/Src/Gui/EditBreakpointDialog.h @@ -1,5 +1,4 @@ -#ifndef EDITBREAKPOINTDIALOG_H -#define EDITBREAKPOINTDIALOG_H +#pragma once #include #include "Bridge.h" @@ -39,5 +38,3 @@ private: void loadFromBp(); }; - -#endif // EDITBREAKPOINTDIALOG_H diff --git a/src/gui/Src/Gui/EditFloatRegister.h b/src/gui/Src/Gui/EditFloatRegister.h index 6568a37d..ee82316b 100644 --- a/src/gui/Src/Gui/EditFloatRegister.h +++ b/src/gui/Src/Gui/EditFloatRegister.h @@ -1,5 +1,4 @@ -#ifndef EDITFLOATREGISTER_H -#define EDITFLOATREGISTER_H +#pragma once #include #include @@ -103,5 +102,3 @@ private: char Data[64]; int RegSize; }; - -#endif // EDITFLOATREGISTER_H diff --git a/src/gui/Src/Gui/ExceptionRangeDialog.h b/src/gui/Src/Gui/ExceptionRangeDialog.h index 352d709a..d870f5d5 100644 --- a/src/gui/Src/Gui/ExceptionRangeDialog.h +++ b/src/gui/Src/Gui/ExceptionRangeDialog.h @@ -1,5 +1,4 @@ -#ifndef EXCEPTIONRANGEDIALOG_H -#define EXCEPTIONRANGEDIALOG_H +#pragma once #include @@ -27,5 +26,3 @@ private slots: private: Ui::ExceptionRangeDialog* ui; }; - -#endif // EXCEPTIONRANGEDIALOG_H diff --git a/src/gui/Src/Gui/FavouriteTools.h b/src/gui/Src/Gui/FavouriteTools.h index fe0c1da6..85ba60fb 100644 --- a/src/gui/Src/Gui/FavouriteTools.h +++ b/src/gui/Src/Gui/FavouriteTools.h @@ -1,5 +1,4 @@ -#ifndef FAVOURITETOOLS_H -#define FAVOURITETOOLS_H +#pragma once #include @@ -56,5 +55,3 @@ private: void updateScriptsBtnEnabled(); void updateCommandsBtnEnabled(); }; - -#endif // FAVOURITETOOLS_H diff --git a/src/gui/Src/Gui/GotoDialog.h b/src/gui/Src/Gui/GotoDialog.h index a4d76181..4f0b4819 100644 --- a/src/gui/Src/Gui/GotoDialog.h +++ b/src/gui/Src/Gui/GotoDialog.h @@ -1,5 +1,4 @@ -#ifndef GOTODIALOG_H -#define GOTODIALOG_H +#pragma once #include #include "Imports.h" @@ -47,5 +46,3 @@ private: void setOkEnabled(bool enabled); QString mCompletionText; }; - -#endif // GOTODIALOG_H diff --git a/src/gui/Src/Gui/HandlesView.h b/src/gui/Src/Gui/HandlesView.h index 49b1c28a..aa7ad4a3 100644 --- a/src/gui/Src/Gui/HandlesView.h +++ b/src/gui/Src/Gui/HandlesView.h @@ -1,5 +1,4 @@ -#ifndef HANDLESVIEW_H -#define HANDLESVIEW_H +#pragma once #include #include "Imports.h" @@ -66,5 +65,3 @@ private: //void enumHeaps(); void enumPrivileges(); }; - -#endif // HANDLESVIEW_H diff --git a/src/gui/Src/Gui/HexEditDialog.h b/src/gui/Src/Gui/HexEditDialog.h index 564bebb6..6eabfdd9 100644 --- a/src/gui/Src/Gui/HexEditDialog.h +++ b/src/gui/Src/Gui/HexEditDialog.h @@ -1,5 +1,4 @@ -#ifndef HEXEDITDIALOG_H -#define HEXEDITDIALOG_H +#pragma once #include #include "QHexEdit/QHexEdit.h" @@ -105,5 +104,3 @@ private: void printData(DataType type); }; - -#endif // HEXEDITDIALOG_H diff --git a/src/gui/Src/Gui/HexLineEdit.h b/src/gui/Src/Gui/HexLineEdit.h index 80121649..960ad9b8 100644 --- a/src/gui/Src/Gui/HexLineEdit.h +++ b/src/gui/Src/Gui/HexLineEdit.h @@ -1,5 +1,4 @@ -#ifndef HEXLINEEDITT_H -#define HEXLINEEDITT_H +#pragma once #include @@ -47,5 +46,3 @@ private: QByteArray toEncodedData(const QString & text); }; - -#endif // HEXLINEEDITT_H diff --git a/src/gui/Src/Gui/LineEditDialog.h b/src/gui/Src/Gui/LineEditDialog.h index 4fb6939c..81f17c7b 100644 --- a/src/gui/Src/Gui/LineEditDialog.h +++ b/src/gui/Src/Gui/LineEditDialog.h @@ -1,5 +1,4 @@ -#ifndef LINEEDITDIALOG_H -#define LINEEDITDIALOG_H +#pragma once #include @@ -39,5 +38,3 @@ private: unsigned int fixed_size; bool fpuMode; }; - -#endif // LINEEDITDIALOG_H diff --git a/src/gui/Src/Gui/LocalVarsView.h b/src/gui/Src/Gui/LocalVarsView.h index dd8a0ed1..63cea6da 100644 --- a/src/gui/Src/Gui/LocalVarsView.h +++ b/src/gui/Src/Gui/LocalVarsView.h @@ -1,5 +1,5 @@ -#ifndef LOCALVARSVIEW_H -#define LOCALVARSVIEW_H +#pragma once + #include "StdTable.h" class CPUMultiDump; @@ -39,5 +39,3 @@ private: QAction* baseRegisters[8]; #endif //_WIN64 }; - -#endif //LOCALVARSVIEW_H diff --git a/src/gui/Src/Gui/LogStatusLabel.h b/src/gui/Src/Gui/LogStatusLabel.h index a747bd9f..feb50ff0 100644 --- a/src/gui/Src/Gui/LogStatusLabel.h +++ b/src/gui/Src/Gui/LogStatusLabel.h @@ -1,5 +1,4 @@ -#ifndef LOGSTATUSLABEL_H -#define LOGSTATUSLABEL_H +#pragma once #include #include "Bridge.h" @@ -25,5 +24,3 @@ private: QString labelText; QString statusTip; }; - -#endif // LOGSTATUSLABEL_H diff --git a/src/gui/Src/Gui/LogView.h b/src/gui/Src/Gui/LogView.h index bdec964d..e7efb2d6 100644 --- a/src/gui/Src/Gui/LogView.h +++ b/src/gui/Src/Gui/LogView.h @@ -1,5 +1,4 @@ -#ifndef LOGVIEW_H -#define LOGVIEW_H +#pragma once #include #include @@ -58,5 +57,3 @@ private: QTimer* flushTimer; bool flushLog; }; - -#endif // LOGVIEW_H diff --git a/src/gui/Src/Gui/MainWindow.h b/src/gui/Src/Gui/MainWindow.h index 84c980ff..d84d8754 100644 --- a/src/gui/Src/Gui/MainWindow.h +++ b/src/gui/Src/Gui/MainWindow.h @@ -1,5 +1,4 @@ -#ifndef MAINWINDOW_H -#define MAINWINDOW_H +#pragma once #include #include "Imports.h" @@ -283,5 +282,3 @@ private slots: void on_actionDefaultTheme_triggered(); void on_actionAbout_Qt_triggered(); }; - -#endif // MAINWINDOW_H diff --git a/src/gui/Src/Gui/MemoryMapView.h b/src/gui/Src/Gui/MemoryMapView.h index 9294caf3..398ad40a 100644 --- a/src/gui/Src/Gui/MemoryMapView.h +++ b/src/gui/Src/Gui/MemoryMapView.h @@ -1,5 +1,4 @@ -#ifndef MEMORYMAPVIEW_H -#define MEMORYMAPVIEW_H +#pragma once #include "StdTable.h" @@ -84,5 +83,3 @@ private: duint mCipBase; }; - -#endif // MEMORYMAPVIEW_H diff --git a/src/gui/Src/Gui/MessagesBreakpoints.h b/src/gui/Src/Gui/MessagesBreakpoints.h index 5b3ed700..0bb33b35 100644 --- a/src/gui/Src/Gui/MessagesBreakpoints.h +++ b/src/gui/Src/Gui/MessagesBreakpoints.h @@ -1,5 +1,4 @@ -#ifndef MESSAGESBREAKPOINTS_H -#define MESSAGESBREAKPOINTS_H +#pragma once #include #include @@ -34,5 +33,3 @@ private: QMap messages; QVector filterMessages; }; - -#endif // MESSAGESBREAKPOINTS_H diff --git a/src/gui/Src/Gui/MultiItemsSelectWindow.h b/src/gui/Src/Gui/MultiItemsSelectWindow.h index 2c590770..aaa7b923 100644 --- a/src/gui/Src/Gui/MultiItemsSelectWindow.h +++ b/src/gui/Src/Gui/MultiItemsSelectWindow.h @@ -1,5 +1,4 @@ -#ifndef OPENVIEWSWINDOW_H -#define OPENVIEWSWINDOW_H +#pragma once // stolen from http://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/coreplugin/editormanager/openeditorswindow.h @@ -67,5 +66,3 @@ private: MultiItemsDataProvider* mDataProvider = nullptr; bool mShowIcon; }; - -#endif diff --git a/src/gui/Src/Gui/NotepadView.h b/src/gui/Src/Gui/NotepadView.h index d7eaeaec..b43c410c 100644 --- a/src/gui/Src/Gui/NotepadView.h +++ b/src/gui/Src/Gui/NotepadView.h @@ -1,5 +1,4 @@ -#ifndef NOTEPADVIEW_H -#define NOTEPADVIEW_H +#pragma once #include #include "BridgeResult.h" @@ -18,5 +17,3 @@ public slots: private: BridgeResult::Type mType; }; - -#endif // NOTEPADVIEW_H diff --git a/src/gui/Src/Gui/NotesManager.h b/src/gui/Src/Gui/NotesManager.h index 08249a89..bd8bb7d8 100644 --- a/src/gui/Src/Gui/NotesManager.h +++ b/src/gui/Src/Gui/NotesManager.h @@ -1,5 +1,4 @@ -#ifndef NOTESMANAGER_H -#define NOTESMANAGER_H +#pragma once #include #include @@ -19,5 +18,3 @@ private: NotepadView* mGlobal; NotepadView* mDebuggee; }; - -#endif // NOTESMANAGER_H diff --git a/src/gui/Src/Gui/PageMemoryRights.h b/src/gui/Src/Gui/PageMemoryRights.h index fea25a18..e1466496 100644 --- a/src/gui/Src/Gui/PageMemoryRights.h +++ b/src/gui/Src/Gui/PageMemoryRights.h @@ -1,5 +1,4 @@ -#ifndef PAGEMEMORYRIGHTS_H -#define PAGEMEMORYRIGHTS_H +#pragma once #include #include "dbg_types.h" @@ -32,5 +31,3 @@ private: duint size; QString pagetype; }; - -#endif // PAGEMEMORYRIGHTS_H diff --git a/src/gui/Src/Gui/PatchDialog.h b/src/gui/Src/Gui/PatchDialog.h index 2c574ef2..b98d1d60 100644 --- a/src/gui/Src/Gui/PatchDialog.h +++ b/src/gui/Src/Gui/PatchDialog.h @@ -1,5 +1,4 @@ -#ifndef PATCHDIALOG_H -#define PATCHDIALOG_H +#pragma once #include #include @@ -82,5 +81,3 @@ private slots: void on_btnImport_clicked(); void on_btnExport_clicked(); }; - -#endif // PATCHDIALOG_H diff --git a/src/gui/Src/Gui/PatchDialogGroupSelector.h b/src/gui/Src/Gui/PatchDialogGroupSelector.h index 77d156a5..db5e4798 100644 --- a/src/gui/Src/Gui/PatchDialogGroupSelector.h +++ b/src/gui/Src/Gui/PatchDialogGroupSelector.h @@ -1,5 +1,4 @@ -#ifndef PATCHDIALOGGROUPSELECTOR_H -#define PATCHDIALOGGROUPSELECTOR_H +#pragma once #include #include @@ -39,5 +38,3 @@ private: Ui::PatchDialogGroupSelector* ui; int mGroup; }; - -#endif // PATCHDIALOGGROUPSELECTOR_H diff --git a/src/gui/Src/Gui/ReferenceManager.h b/src/gui/Src/Gui/ReferenceManager.h index 3cf87575..8968d98d 100644 --- a/src/gui/Src/Gui/ReferenceManager.h +++ b/src/gui/Src/Gui/ReferenceManager.h @@ -1,5 +1,4 @@ -#ifndef REFERENCEMANAGER_H -#define REFERENCEMANAGER_H +#pragma once #include #include @@ -24,5 +23,3 @@ private: ReferenceView* mCurrentReferenceView; QPushButton* mCloseAllTabs; }; - -#endif // REFERENCEMANAGER_H diff --git a/src/gui/Src/Gui/RegistersView.h b/src/gui/Src/Gui/RegistersView.h index a194d405..96d7a8a9 100644 --- a/src/gui/Src/Gui/RegistersView.h +++ b/src/gui/Src/Gui/RegistersView.h @@ -1,5 +1,4 @@ -#ifndef REGISTERSVIEW_H -#define REGISTERSVIEW_H +#pragma once #include #include @@ -270,5 +269,3 @@ protected: QAction* SIMDUQWord; QAction* SIMDHQWord; }; - -#endif // REGISTERSVIEW_H diff --git a/src/gui/Src/Gui/SEHChainView.h b/src/gui/Src/Gui/SEHChainView.h index f256966d..57636a86 100644 --- a/src/gui/Src/Gui/SEHChainView.h +++ b/src/gui/Src/Gui/SEHChainView.h @@ -1,5 +1,4 @@ -#ifndef SEHCHAINVIEW_H -#define SEHCHAINVIEW_H +#pragma once #include "StdTable.h" @@ -21,5 +20,3 @@ private: QAction* mFollowAddress; QAction* mFollowHandler; }; - -#endif // SEHCHAINVIEW_H diff --git a/src/gui/Src/Gui/ScriptView.h b/src/gui/Src/Gui/ScriptView.h index 3cded007..98f6232f 100644 --- a/src/gui/Src/Gui/ScriptView.h +++ b/src/gui/Src/Gui/ScriptView.h @@ -1,5 +1,4 @@ -#ifndef SCRIPTVIEW_H -#define SCRIPTVIEW_H +#pragma once #include "StdTable.h" @@ -64,5 +63,3 @@ private: MRUList* mMRUList; LineEditDialog* mCmdLineEdit; }; - -#endif // SCRIPTVIEW_H diff --git a/src/gui/Src/Gui/SelectFields.h b/src/gui/Src/Gui/SelectFields.h index ebf1e728..86ba11d1 100644 --- a/src/gui/Src/Gui/SelectFields.h +++ b/src/gui/Src/Gui/SelectFields.h @@ -1,5 +1,4 @@ -#ifndef SELECTFIELDS_H -#define SELECTFIELDS_H +#pragma once #include @@ -22,5 +21,3 @@ public: private: Ui::SelectFields* ui; }; - -#endif // SELECTFIELDS_H diff --git a/src/gui/Src/Gui/SettingsDialog.h b/src/gui/Src/Gui/SettingsDialog.h index 8685c2d0..af6588a6 100644 --- a/src/gui/Src/Gui/SettingsDialog.h +++ b/src/gui/Src/Gui/SettingsDialog.h @@ -1,5 +1,4 @@ -#ifndef SETTINGSDIALOG_H -#define SETTINGSDIALOG_H +#pragma once #include #include @@ -270,5 +269,3 @@ private: void OnCurrentExceptionFilterSettingsChanged(); void UpdateExceptionListWidget(); }; - -#endif // SETTINGSDIALOG_H diff --git a/src/gui/Src/Gui/ShortcutsDialog.h b/src/gui/Src/Gui/ShortcutsDialog.h index d7201861..7e958543 100644 --- a/src/gui/Src/Gui/ShortcutsDialog.h +++ b/src/gui/Src/Gui/ShortcutsDialog.h @@ -1,5 +1,4 @@ -#ifndef SHORTCUTSDIALOG_H -#define SHORTCUTSDIALOG_H +#pragma once #include #include @@ -36,5 +35,3 @@ private: void filterShortcutsByName(const QString & nameFilter, QMap & mapToFill); void showShortcutsFiltered(const QString & actionName); }; - -#endif // SHORTCUTSDIALOG_H diff --git a/src/gui/Src/Gui/SimpleTraceDialog.h b/src/gui/Src/Gui/SimpleTraceDialog.h index b74c1daf..83e322cd 100644 --- a/src/gui/Src/Gui/SimpleTraceDialog.h +++ b/src/gui/Src/Gui/SimpleTraceDialog.h @@ -1,5 +1,4 @@ -#ifndef SIMPLETRACEDIALOG_H -#define SIMPLETRACEDIALOG_H +#pragma once #include @@ -26,5 +25,3 @@ private: QString mTraceCommand; QString mLogFile; }; - -#endif // SIMPLETRACEDIALOG_H diff --git a/src/gui/Src/Gui/SourceView.h b/src/gui/Src/Gui/SourceView.h index cf33fe22..90520b11 100644 --- a/src/gui/Src/Gui/SourceView.h +++ b/src/gui/Src/Gui/SourceView.h @@ -1,5 +1,4 @@ -#ifndef SOURCEVIEW_H -#define SOURCEVIEW_H +#pragma once #include #include @@ -65,5 +64,3 @@ private: void parseLine(size_t index, LineData & line); duint addrFromIndex(size_t index); }; - -#endif // SOURCEVIEW_H diff --git a/src/gui/Src/Gui/SourceViewerManager.h b/src/gui/Src/Gui/SourceViewerManager.h index 32a45bcd..60247c16 100644 --- a/src/gui/Src/Gui/SourceViewerManager.h +++ b/src/gui/Src/Gui/SourceViewerManager.h @@ -1,5 +1,4 @@ -#ifndef SOURCEVIEWERMANAGER_H -#define SOURCEVIEWERMANAGER_H +#pragma once #include #include @@ -21,5 +20,3 @@ public slots: private: QPushButton* mCloseAllTabs; }; - -#endif // SOURCEVIEWERMANAGER_H diff --git a/src/gui/Src/Gui/StructWidget.h b/src/gui/Src/Gui/StructWidget.h index 1c25f21f..54032eb8 100644 --- a/src/gui/Src/Gui/StructWidget.h +++ b/src/gui/Src/Gui/StructWidget.h @@ -1,5 +1,4 @@ -#ifndef STRUCTWIDGET_H -#define STRUCTWIDGET_H +#pragma once #include #include "Bridge.h" @@ -51,5 +50,3 @@ private slots: void changeAddrSlot(); void refreshSlot(); }; - -#endif // STRUCTWIDGET_H diff --git a/src/gui/Src/Gui/SymbolView.h b/src/gui/Src/Gui/SymbolView.h index fa6763f7..e761e368 100644 --- a/src/gui/Src/Gui/SymbolView.h +++ b/src/gui/Src/Gui/SymbolView.h @@ -1,5 +1,4 @@ -#ifndef SYMBOLVIEW_H -#define SYMBOLVIEW_H +#pragma once #include #include "Bridge.h" @@ -93,5 +92,3 @@ private: static void cbSymbolEnum(SYMBOLINFO* symbol, void* user); }; - -#endif // SYMBOLVIEW_H diff --git a/src/gui/Src/Gui/TabBar.h b/src/gui/Src/Gui/TabBar.h index b750fc6b..c35a6641 100644 --- a/src/gui/Src/Gui/TabBar.h +++ b/src/gui/Src/Gui/TabBar.h @@ -1,5 +1,4 @@ -#ifndef __MHTABBAR_H__ -#define __MHTABBAR_H__ +#pragma once // Qt includes #include @@ -34,5 +33,3 @@ private: bool mAllowDetach; bool mAllowDelete; }; - -#endif // __MHTABBAR_H__ diff --git a/src/gui/Src/Gui/TabWidget.h b/src/gui/Src/Gui/TabWidget.h index 656be290..6cc92431 100644 --- a/src/gui/Src/Gui/TabWidget.h +++ b/src/gui/Src/Gui/TabWidget.h @@ -1,5 +1,4 @@ -#ifndef __MHTABWIDGET_H__ -#define __MHTABWIDGET_H__ +#pragma once // Qt includes #include @@ -90,6 +89,3 @@ protected: void closeEvent(QCloseEvent* event); bool event(QEvent* event); }; - -#endif // __MHTABWIDGET_H__ - diff --git a/src/gui/Src/Gui/ThreadView.h b/src/gui/Src/Gui/ThreadView.h index 1a136554..3f7a6437 100644 --- a/src/gui/Src/Gui/ThreadView.h +++ b/src/gui/Src/Gui/ThreadView.h @@ -1,5 +1,4 @@ -#ifndef THREADVIEW_H -#define THREADVIEW_H +#pragma once #include "StdTable.h" #include @@ -25,5 +24,3 @@ private: duint mCurrentThreadId; MenuBuilder* mMenuBuilder; }; - -#endif // THREADVIEW_H diff --git a/src/gui/Src/Gui/TimeWastedCounter.h b/src/gui/Src/Gui/TimeWastedCounter.h index 565b3c5e..bd5114d5 100644 --- a/src/gui/Src/Gui/TimeWastedCounter.h +++ b/src/gui/Src/Gui/TimeWastedCounter.h @@ -1,5 +1,4 @@ -#ifndef TIMEWASTEDCOUNTER_H -#define TIMEWASTEDCOUNTER_H +#pragma once #include @@ -17,5 +16,3 @@ private slots: private: QLabel* mLabel; }; - -#endif // TIMEWASTEDCOUNTER_H diff --git a/src/gui/Src/Gui/VirtualModDialog.h b/src/gui/Src/Gui/VirtualModDialog.h index 9272b1b9..edcae16d 100644 --- a/src/gui/Src/Gui/VirtualModDialog.h +++ b/src/gui/Src/Gui/VirtualModDialog.h @@ -1,5 +1,4 @@ -#ifndef VIRTUALMODDIALOG_H -#define VIRTUALMODDIALOG_H +#pragma once #include #include "Imports.h" @@ -22,5 +21,3 @@ public: private: Ui::VirtualModDialog* ui; }; - -#endif // VIRTUALMODDIALOG_H diff --git a/src/gui/Src/Gui/WatchView.h b/src/gui/Src/Gui/WatchView.h index 4e54b461..658cfbfc 100644 --- a/src/gui/Src/Gui/WatchView.h +++ b/src/gui/Src/Gui/WatchView.h @@ -1,5 +1,5 @@ -#ifndef WATCHVIEW_H -#define WATCHVIEW_H +#pragma once + #include "StdTable.h" class CPUMultiDump; @@ -52,5 +52,3 @@ private: ColId }; }; - -#endif // WATCHVIEW_H diff --git a/src/gui/Src/Gui/WordEditDialog.h b/src/gui/Src/Gui/WordEditDialog.h index 72230f46..2761b329 100644 --- a/src/gui/Src/Gui/WordEditDialog.h +++ b/src/gui/Src/Gui/WordEditDialog.h @@ -1,5 +1,4 @@ -#ifndef WORDEDITDIALOG_H -#define WORDEDITDIALOG_H +#pragma once #include #include @@ -47,5 +46,3 @@ private: int mAsciiLineEditPos; int byteCount; }; - -#endif // WORDEDITDIALOG_H diff --git a/src/gui/Src/Gui/XrefBrowseDialog.h b/src/gui/Src/Gui/XrefBrowseDialog.h index cdd8b0e7..c0b8ab52 100644 --- a/src/gui/Src/Gui/XrefBrowseDialog.h +++ b/src/gui/Src/Gui/XrefBrowseDialog.h @@ -1,5 +1,4 @@ -#ifndef XREFBROWSEDIALOG_H -#define XREFBROWSEDIALOG_H +#pragma once #include "Bridge.h" #include "ActionHelpers.h" @@ -62,5 +61,3 @@ private: MenuBuilder* mMenu; GotoFunction mGotoFunction; }; - -#endif // XREFBROWSEDIALOG_H diff --git a/src/gui/Src/Imports.h b/src/gui/Src/Imports.h index a7351ab7..2596c557 100644 --- a/src/gui/Src/Imports.h +++ b/src/gui/Src/Imports.h @@ -1,5 +1,4 @@ -#ifndef IMPORTS_H -#define IMPORTS_H +#pragma once #ifndef _BRIDGEMAIN_H_ #include "bridge/bridgemain.h" @@ -16,5 +15,3 @@ class QString; void DbgCmdExec(const QString & cmd); bool DbgCmdExecDirect(const QString & cmd); - -#endif // IMPORTS_H diff --git a/src/gui/Src/Memory/MemoryPage.h b/src/gui/Src/Memory/MemoryPage.h index 24dcc042..01213b74 100644 --- a/src/gui/Src/Memory/MemoryPage.h +++ b/src/gui/Src/Memory/MemoryPage.h @@ -1,5 +1,4 @@ -#ifndef MEMORYPAGE_H -#define MEMORYPAGE_H +#pragma once #include #include "Imports.h" @@ -22,5 +21,3 @@ private: duint mBase; duint mSize; }; - -#endif // MEMORYPAGE_H diff --git a/src/gui/Src/QHexEdit/ArrayCommand.h b/src/gui/Src/QHexEdit/ArrayCommand.h index 78fdf406..5b7c4cf7 100644 --- a/src/gui/Src/QHexEdit/ArrayCommand.h +++ b/src/gui/Src/QHexEdit/ArrayCommand.h @@ -1,5 +1,4 @@ -#ifndef ARRAYCOMMAND_H -#define ARRAYCOMMAND_H +#pragma once #include #include @@ -48,5 +47,3 @@ private: QByteArray _newBa; QByteArray _oldBa; }; - -#endif // ARRAYCOMMAND_H diff --git a/src/gui/Src/QHexEdit/QHexEdit.h b/src/gui/Src/QHexEdit/QHexEdit.h index 9d934887..eb0d9b33 100644 --- a/src/gui/Src/QHexEdit/QHexEdit.h +++ b/src/gui/Src/QHexEdit/QHexEdit.h @@ -1,5 +1,4 @@ -#ifndef QHEXEDIT_H -#define QHEXEDIT_H +#pragma once #include @@ -60,6 +59,3 @@ signals: private: QHexEditPrivate* qHexEdit_p; }; - -#endif - diff --git a/src/gui/Src/QHexEdit/QHexEditPrivate.h b/src/gui/Src/QHexEdit/QHexEditPrivate.h index ccf0e81e..b2effb2c 100644 --- a/src/gui/Src/QHexEdit/QHexEditPrivate.h +++ b/src/gui/Src/QHexEdit/QHexEditPrivate.h @@ -1,5 +1,4 @@ -#ifndef QHEXEDITPRIVATE_H -#define QHEXEDITPRIVATE_H +#pragma once #include #include @@ -110,6 +109,3 @@ private: int _initSize; int _horizonalSpacing; }; - -#endif //QHEXEDITPRIVATE_H - diff --git a/src/gui/Src/QHexEdit/XByteArray.h b/src/gui/Src/QHexEdit/XByteArray.h index ef774362..eedd29ee 100644 --- a/src/gui/Src/QHexEdit/XByteArray.h +++ b/src/gui/Src/QHexEdit/XByteArray.h @@ -1,5 +1,4 @@ -#ifndef XBYTEARRAY_H -#define XBYTEARRAY_H +#pragma once #include @@ -24,5 +23,3 @@ public: private: QByteArray _data; //raw byte array }; - -#endif // XBYTEARRAY_H diff --git a/src/gui/Src/Tracer/TraceBrowser.h b/src/gui/Src/Tracer/TraceBrowser.h index 7dbac0ef..cbad3533 100644 --- a/src/gui/Src/Tracer/TraceBrowser.h +++ b/src/gui/Src/Tracer/TraceBrowser.h @@ -1,5 +1,4 @@ -#ifndef TRACEBROWSER_H -#define TRACEBROWSER_H +#pragma once #include "AbstractTableView.h" #include "VaHistory.h" @@ -187,5 +186,3 @@ public slots: protected: void disasm(unsigned long long index, bool history = true); }; - -#endif //TRACEBROWSER_H diff --git a/src/gui/Src/Tracer/TraceFileReader.h b/src/gui/Src/Tracer/TraceFileReader.h index 8f0d9f7c..3e392ff7 100644 --- a/src/gui/Src/Tracer/TraceFileReader.h +++ b/src/gui/Src/Tracer/TraceFileReader.h @@ -1,5 +1,4 @@ -#ifndef TRACEFILEREADER_H -#define TRACEFILEREADER_H +#pragma once #include "Bridge.h" #include @@ -76,5 +75,3 @@ private: QBeaEngine* mDisasm; }; - -#endif //TRACEFILEREADER_H diff --git a/src/gui/Src/Tracer/TraceFileReaderInternal.h b/src/gui/Src/Tracer/TraceFileReaderInternal.h index b678e49f..85ac5edb 100644 --- a/src/gui/Src/Tracer/TraceFileReaderInternal.h +++ b/src/gui/Src/Tracer/TraceFileReaderInternal.h @@ -1,4 +1,5 @@ #pragma once + #include #include "TraceFileReader.h" #include "QBeaEngine.h" diff --git a/src/gui/Src/Tracer/TraceFileSearch.h b/src/gui/Src/Tracer/TraceFileSearch.h index a3b88021..5f91e155 100644 --- a/src/gui/Src/Tracer/TraceFileSearch.h +++ b/src/gui/Src/Tracer/TraceFileSearch.h @@ -1,9 +1,8 @@ -#ifndef TRACEFILESEARCH_H -#define TRACEFILESEARCH_H +#pragma once + #include "Bridge.h" class TraceFileReader; int TraceFileSearchConstantRange(TraceFileReader* file, duint start, duint end); int TraceFileSearchMemReference(TraceFileReader* file, duint address); unsigned long long TraceFileSearchFuncReturn(TraceFileReader* file, unsigned long long start); -#endif //TRACEFILESEARCH_H diff --git a/src/gui/Src/Tracer/TraceInfoBox.h b/src/gui/Src/Tracer/TraceInfoBox.h index 7b66932e..8e7f36b3 100644 --- a/src/gui/Src/Tracer/TraceInfoBox.h +++ b/src/gui/Src/Tracer/TraceInfoBox.h @@ -1,5 +1,5 @@ -#ifndef TRACEINFOBOX_H -#define TRACEINFOBOX_H +#pragma once + #include "StdTable.h" class TraceWidget; @@ -24,5 +24,3 @@ private: QAction* mCopyLineAction; }; - -#endif //TRACEINFOBOX_H diff --git a/src/gui/Src/Tracer/TraceRegisters.h b/src/gui/Src/Tracer/TraceRegisters.h index 86dc363b..d354e0cb 100644 --- a/src/gui/Src/Tracer/TraceRegisters.h +++ b/src/gui/Src/Tracer/TraceRegisters.h @@ -1,5 +1,5 @@ -#ifndef TRACEREGISTERS_H -#define TRACEREGISTERS_H +#pragma once + #include "RegistersView.h" class TraceRegisters : public RegistersView @@ -21,5 +21,3 @@ protected: private: QAction* wCM_CopySIMDRegister; }; - -#endif // TRACEREGISTERS_H diff --git a/src/gui/Src/Tracer/TraceWidget.h b/src/gui/Src/Tracer/TraceWidget.h index 1a47b92d..ba59653a 100644 --- a/src/gui/Src/Tracer/TraceWidget.h +++ b/src/gui/Src/Tracer/TraceWidget.h @@ -1,5 +1,4 @@ -#ifndef TRACEWIDGET_H -#define TRACEWIDGET_H +#pragma once #include #include "Bridge.h" @@ -40,5 +39,3 @@ protected: private: Ui::TraceWidget* ui; }; - -#endif // TRACEWIDGET_H diff --git a/src/gui/Src/Utils/ActionHelpers.h b/src/gui/Src/Utils/ActionHelpers.h index 6537db39..1bd02ca5 100644 --- a/src/gui/Src/Utils/ActionHelpers.h +++ b/src/gui/Src/Utils/ActionHelpers.h @@ -1,5 +1,4 @@ -#ifndef ACTIONHELPERS_H -#define ACTIONHELPERS_H +#pragma once #include #include @@ -262,5 +261,3 @@ protected: return funcs.makeShortcutMenuAction2(menu, icon, text, slot, shortcut); } }; - -#endif diff --git a/src/gui/Src/Utils/BackgroundFlickerThread.h b/src/gui/Src/Utils/BackgroundFlickerThread.h index 2a4c0efd..b12536f7 100644 --- a/src/gui/Src/Utils/BackgroundFlickerThread.h +++ b/src/gui/Src/Utils/BackgroundFlickerThread.h @@ -1,5 +1,4 @@ -#ifndef BACKGROUNDFLICKERTHREAD_H -#define BACKGROUNDFLICKERTHREAD_H +#pragma once #include #include @@ -19,5 +18,3 @@ private: int count; int delay; }; - -#endif // BACKGROUNDFLICKERTHREAD_H diff --git a/src/gui/Src/Utils/Breakpoints.h b/src/gui/Src/Utils/Breakpoints.h index 3d7f5483..dc977938 100644 --- a/src/gui/Src/Utils/Breakpoints.h +++ b/src/gui/Src/Utils/Breakpoints.h @@ -1,5 +1,4 @@ -#ifndef BREAKPOINTS_H -#define BREAKPOINTS_H +#pragma once #include #include "Bridge.h" @@ -34,5 +33,3 @@ public: static bool BPTrival(BPXTYPE type, duint va); static bool editBP(BPXTYPE type, const QString & addrText, QWidget* widget); }; - -#endif // BREAKPOINTS_H diff --git a/src/gui/Src/Utils/CachedFontMetrics.h b/src/gui/Src/Utils/CachedFontMetrics.h index 31ef4ffe..6dd39730 100644 --- a/src/gui/Src/Utils/CachedFontMetrics.h +++ b/src/gui/Src/Utils/CachedFontMetrics.h @@ -1,5 +1,4 @@ -#ifndef CACHEDFONTMETRICS_H -#define CACHEDFONTMETRICS_H +#pragma once #include #include @@ -59,5 +58,3 @@ private: uchar mWidths[0x10000 - 0xE000 + 0xD800]; int mHeight; }; - -#endif // CACHEDFONTMETRICS_H diff --git a/src/gui/Src/Utils/CodeFolding.h b/src/gui/Src/Utils/CodeFolding.h index e2daf0a1..d5a14ee8 100644 --- a/src/gui/Src/Utils/CodeFolding.h +++ b/src/gui/Src/Utils/CodeFolding.h @@ -1,5 +1,5 @@ -#ifndef CODEFOLDING_H -#define CODEFOLDING_H +#pragma once + #include "Imports.h" #include @@ -46,5 +46,3 @@ protected: FoldTree* getFirstFoldedTree(duint va); duint getFoldedSize(const FoldTree* node) const; }; - -#endif // CODEFOLDING_H diff --git a/src/gui/Src/Utils/CommonActions.h b/src/gui/Src/Utils/CommonActions.h index c6790e8e..2c2989ef 100644 --- a/src/gui/Src/Utils/CommonActions.h +++ b/src/gui/Src/Utils/CommonActions.h @@ -1,5 +1,4 @@ -#ifndef COMMONACTIONS_H -#define COMMONACTIONS_H +#pragma once #include #include @@ -76,6 +75,3 @@ private: bool WarningBoxNotExecutable(const QString & text, duint wVA); QWidget* widgetparent(); }; - - -#endif //COMMONACTIONS_H diff --git a/src/gui/Src/Utils/Configuration.h b/src/gui/Src/Utils/Configuration.h index 02d42058..ed46edbb 100644 --- a/src/gui/Src/Utils/Configuration.h +++ b/src/gui/Src/Utils/Configuration.h @@ -1,5 +1,4 @@ -#ifndef CONFIGURATION_H -#define CONFIGURATION_H +#pragma once #include #include @@ -130,5 +129,3 @@ private: mutable bool noMoreMsgbox; }; - -#endif // CONFIGURATION_H diff --git a/src/gui/Src/Utils/EncodeMap.h b/src/gui/Src/Utils/EncodeMap.h index fae7eff7..fa093c01 100644 --- a/src/gui/Src/Utils/EncodeMap.h +++ b/src/gui/Src/Utils/EncodeMap.h @@ -1,5 +1,4 @@ -#ifndef ENCODEMAP_H -#define ENCODEMAP_H +#pragma once #include #include "Imports.h" @@ -83,5 +82,3 @@ protected: byte* mBuffer; duint mBufferSize; }; - -#endif // ENCODEMAP_H diff --git a/src/gui/Src/Utils/FlickerThread.h b/src/gui/Src/Utils/FlickerThread.h index 7f07ad79..81f76448 100644 --- a/src/gui/Src/Utils/FlickerThread.h +++ b/src/gui/Src/Utils/FlickerThread.h @@ -1,5 +1,4 @@ -#ifndef FLICKERTHREAD_H -#define FLICKERTHREAD_H +#pragma once #include #include @@ -21,5 +20,3 @@ private: int width; int delay; }; - -#endif // FLICKERTHREAD_H diff --git a/src/gui/Src/Utils/HexValidator.h b/src/gui/Src/Utils/HexValidator.h index 16ffa4a5..86a37bf3 100644 --- a/src/gui/Src/Utils/HexValidator.h +++ b/src/gui/Src/Utils/HexValidator.h @@ -1,5 +1,5 @@ -#ifndef HEXVALIDATOR_H -#define HEXVALIDATOR_H +#pragma once + #include class HexValidator : public QValidator @@ -12,5 +12,3 @@ public: void fixup(QString & input) const; State validate(QString & input, int & pos) const; }; - -#endif // HEXVALIDATOR_H diff --git a/src/gui/Src/Utils/LongLongValidator.h b/src/gui/Src/Utils/LongLongValidator.h index 0241adcd..9c8f7b80 100644 --- a/src/gui/Src/Utils/LongLongValidator.h +++ b/src/gui/Src/Utils/LongLongValidator.h @@ -1,5 +1,4 @@ -#ifndef LONGLONGVALIDATOR_H -#define LONGLONGVALIDATOR_H +#pragma once #include @@ -25,5 +24,3 @@ public: private: DataType dt; }; - -#endif // LONGLONGVALIDATOR_H diff --git a/src/gui/Src/Utils/MRUList.h b/src/gui/Src/Utils/MRUList.h index ac15fdfe..06395721 100644 --- a/src/gui/Src/Utils/MRUList.h +++ b/src/gui/Src/Utils/MRUList.h @@ -1,5 +1,4 @@ -#ifndef MRULIST_H -#define MRULIST_H +#pragma once #include #include @@ -31,5 +30,3 @@ private: QList mMRUList; int mMaxMRU; }; - -#endif // MRULIST_H diff --git a/src/gui/Src/Utils/MainWindowCloseThread.h b/src/gui/Src/Utils/MainWindowCloseThread.h index c3ae926d..395a8397 100644 --- a/src/gui/Src/Utils/MainWindowCloseThread.h +++ b/src/gui/Src/Utils/MainWindowCloseThread.h @@ -1,5 +1,4 @@ -#ifndef MAINWINDOWCLOSETHREAD_H -#define MAINWINDOWCLOSETHREAD_H +#pragma once #include @@ -15,5 +14,3 @@ signals: private: void run(); }; - -#endif // MAINWINDOWCLOSETHREAD_H diff --git a/src/gui/Src/Utils/MenuBuilder.h b/src/gui/Src/Utils/MenuBuilder.h index 3427250d..69802e16 100644 --- a/src/gui/Src/Utils/MenuBuilder.h +++ b/src/gui/Src/Utils/MenuBuilder.h @@ -1,5 +1,4 @@ -#ifndef MENUBUILDER -#define MENUBUILDER +#pragma once #include #include @@ -118,5 +117,3 @@ private: std::vector _containers; }; -#endif // MENUBUILDER - diff --git a/src/gui/Src/Utils/MethodInvoker.h b/src/gui/Src/Utils/MethodInvoker.h index 63813242..35d62b9b 100644 --- a/src/gui/Src/Utils/MethodInvoker.h +++ b/src/gui/Src/Utils/MethodInvoker.h @@ -1,5 +1,4 @@ -#ifndef METHODINVOKER_H -#define METHODINVOKER_H +#pragma once #include @@ -20,5 +19,3 @@ struct MethodInvoker }, fnPtr); } }; - -#endif // METHODINVOKER_H diff --git a/src/gui/Src/Utils/MiscUtil.h b/src/gui/Src/Utils/MiscUtil.h index f783f3fa..5bbed1c8 100644 --- a/src/gui/Src/Utils/MiscUtil.h +++ b/src/gui/Src/Utils/MiscUtil.h @@ -1,5 +1,4 @@ -#ifndef MISCUTIL_H -#define MISCUTIL_H +#pragma once #include #include @@ -32,4 +31,3 @@ static const QIcon & DIconHelper(const QString & file) } #define DIcon(file) DIconHelper<__LINE__>(file) -#endif // MISCUTIL_H diff --git a/src/gui/Src/Utils/RichTextPainter.h b/src/gui/Src/Utils/RichTextPainter.h index 9c9b8dd0..ba5fc5e1 100644 --- a/src/gui/Src/Utils/RichTextPainter.h +++ b/src/gui/Src/Utils/RichTextPainter.h @@ -1,5 +1,4 @@ -#ifndef RICHTEXTPAINTER_H -#define RICHTEXTPAINTER_H +#pragma once #include #include @@ -38,5 +37,3 @@ public: static void paintRichText(QPainter* painter, int x, int y, int w, int h, int xinc, const List & richText, CachedFontMetrics* fontMetrics); static void htmlRichText(const List & richText, QString* textHtml, QString & textPlain); }; - -#endif // RICHTEXTPAINTER_H diff --git a/src/gui/Src/Utils/StringUtil.h b/src/gui/Src/Utils/StringUtil.h index c89765ba..6eb44781 100644 --- a/src/gui/Src/Utils/StringUtil.h +++ b/src/gui/Src/Utils/StringUtil.h @@ -1,5 +1,4 @@ -#ifndef STRINGUTIL_H -#define STRINGUTIL_H +#pragma once #include #include @@ -143,5 +142,3 @@ QString FILETIMEToDate(const FILETIME & date); bool GetCommentFormat(duint addr, QString & comment, bool* autoComment = nullptr); QString EscapeCh(QChar ch); - -#endif // STRINGUTIL_H diff --git a/src/gui/Src/Utils/SymbolAutoCompleteModel.h b/src/gui/Src/Utils/SymbolAutoCompleteModel.h index a9254e6c..035a43bb 100644 --- a/src/gui/Src/Utils/SymbolAutoCompleteModel.h +++ b/src/gui/Src/Utils/SymbolAutoCompleteModel.h @@ -1,5 +1,5 @@ -#ifndef SYMBOLAUTOCOMPLETEMODEL -#define SYMBOLAUTOCOMPLETEMODEL +#pragma once + #include #include #include @@ -29,4 +29,3 @@ private: mutable int lastAutocompleteCount; void update() const; }; -#endif //SYMBOLAUTOCOMPLETEMODEL diff --git a/src/gui/Src/Utils/UpdateChecker.h b/src/gui/Src/Utils/UpdateChecker.h index c2d40c69..b8a0e7bd 100644 --- a/src/gui/Src/Utils/UpdateChecker.h +++ b/src/gui/Src/Utils/UpdateChecker.h @@ -1,5 +1,4 @@ -#ifndef UPDATECHECKER_H -#define UPDATECHECKER_H +#pragma once #include @@ -16,5 +15,3 @@ private slots: private: QWidget* mParent; }; - -#endif // UPDATECHECKER_H diff --git a/src/gui/Src/Utils/VaHistory.h b/src/gui/Src/Utils/VaHistory.h index 27256e29..f4d6ff88 100644 --- a/src/gui/Src/Utils/VaHistory.h +++ b/src/gui/Src/Utils/VaHistory.h @@ -1,5 +1,5 @@ -#ifndef VAHISTORY_H -#define VAHISTORY_H +#pragma once + #include "Bridge.h" class VaHistory @@ -55,5 +55,3 @@ private: std::vector mVaHistory; size_t mCurrentVa = -1; }; - -#endif //VAHISTORY_H diff --git a/src/gui/Src/Utils/ValidateExpressionThread.h b/src/gui/Src/Utils/ValidateExpressionThread.h index 14ef61f1..300cf412 100644 --- a/src/gui/Src/Utils/ValidateExpressionThread.h +++ b/src/gui/Src/Utils/ValidateExpressionThread.h @@ -1,5 +1,4 @@ -#ifndef VALIDATEEXPRESSIONTHREAD_H -#define VALIDATEEXPRESSIONTHREAD_H +#pragma once #include #include @@ -36,5 +35,3 @@ private: void run(); }; - -#endif // VALIDATEEXPRESSIONTHREAD_H diff --git a/src/gui/Src/main.h b/src/gui/Src/main.h index d2eb42a8..14be93ca 100644 --- a/src/gui/Src/main.h +++ b/src/gui/Src/main.h @@ -1,5 +1,4 @@ -#ifndef MAIN_H -#define MAIN_H +#pragma once #include #include @@ -44,5 +43,3 @@ public: } }; #endif // QT_VERSION - -#endif // MAIN_H diff --git a/src/zydis_wrapper/ZydisExportConfig.h b/src/zydis_wrapper/ZydisExportConfig.h index 6d530d4a..595925cb 100644 --- a/src/zydis_wrapper/ZydisExportConfig.h +++ b/src/zydis_wrapper/ZydisExportConfig.h @@ -1,6 +1,5 @@ -#ifndef ZYDIS_EXPORT_H -#define ZYDIS_EXPORT_H +#pragma once #ifdef ZYDIS_STATIC_DEFINE # define ZYDIS_EXPORT @@ -38,4 +37,3 @@ # define ZYDIS_NO_DEPRECATED #endif -#endif diff --git a/src/zydis_wrapper/zydis_wrapper.h b/src/zydis_wrapper/zydis_wrapper.h index 190d4852..b8798756 100644 --- a/src/zydis_wrapper/zydis_wrapper.h +++ b/src/zydis_wrapper/zydis_wrapper.h @@ -1,5 +1,4 @@ -#ifndef ZYDIS_WRAPPER_H -#define ZYDIS_WRAPPER_H +#pragma once #include "Zydis/Zydis.h" #include @@ -117,5 +116,3 @@ private: bool mSuccess; uint8_t mVisibleOpCount; }; - -#endif //ZYDIS_WRAPPER_H