diff --git a/hecl-gui/Common.hpp b/hecl-gui/Common.hpp index f2265ab10..a1a63d9f3 100644 --- a/hecl-gui/Common.hpp +++ b/hecl-gui/Common.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_COMMON_HPP -#define GUI_COMMON_HPP +#pragma once #include #include @@ -77,4 +76,3 @@ Q_DECLARE_METATYPE(URDEVersion); void InitializePlatform(); -#endif // GUI_COMMON_HPP diff --git a/hecl-gui/DownloadManager.hpp b/hecl-gui/DownloadManager.hpp index 44f504a04..b05596739 100644 --- a/hecl-gui/DownloadManager.hpp +++ b/hecl-gui/DownloadManager.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_DOWNLOADMANAGER_HPP -#define GUI_DOWNLOADMANAGER_HPP +#pragma once #include #include @@ -71,4 +70,3 @@ public slots: }; -#endif // GUI_DOWNLOADMANAGER_HPP diff --git a/hecl-gui/ErrorLabel.hpp b/hecl-gui/ErrorLabel.hpp index 79c58bdc4..be4cabcd8 100644 --- a/hecl-gui/ErrorLabel.hpp +++ b/hecl-gui/ErrorLabel.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_ERRORLABEL_HPP -#define GUI_ERRORLABEL_HPP +#pragma once #include @@ -19,4 +18,3 @@ public: } }; -#endif // GUI_ERRORLABEL_HPP diff --git a/hecl-gui/EscapeSequenceParser.hpp b/hecl-gui/EscapeSequenceParser.hpp index af915612c..729f9671f 100644 --- a/hecl-gui/EscapeSequenceParser.hpp +++ b/hecl-gui/EscapeSequenceParser.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_ESCAPESEQUENCEPARSER_HPP -#define GUI_ESCAPESEQUENCEPARSER_HPP +#pragma once #include #include @@ -12,4 +11,3 @@ void ReturnInsert(QTextCursor& cur, const QString& text); void ReturnInsert(QTextCursor& cur, const QString& text, const QTextCharFormat& format); -#endif // GUI_ESCAPESEQUENCEPARSER_HPP diff --git a/hecl-gui/ExtractZip.hpp b/hecl-gui/ExtractZip.hpp index 744cc7cc8..4dfc1b9f7 100644 --- a/hecl-gui/ExtractZip.hpp +++ b/hecl-gui/ExtractZip.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_EXTRACTZIP_HPP -#define GUI_EXTRACTZIP_HPP +#pragma once class QStringList; class QuaZip; @@ -13,4 +12,3 @@ public: static bool extractDir(QuaZip& zip, QString dir); }; -#endif // GUI_EXTRACTZIP_HPP diff --git a/hecl-gui/FileDirDialog.hpp b/hecl-gui/FileDirDialog.hpp index bedcaf8e6..240725c46 100644 --- a/hecl-gui/FileDirDialog.hpp +++ b/hecl-gui/FileDirDialog.hpp @@ -1,5 +1,4 @@ -#ifndef FILEDIRDIALOG_HPP -#define FILEDIRDIALOG_HPP +#pragma once #include @@ -10,4 +9,3 @@ public: FileDirDialog(QWidget* parent = nullptr) : QFileDialog(parent) { setFileMode(QFileDialog::Directory); } }; -#endif // FILEDIRDIALOG_HPP diff --git a/hecl-gui/FindBlender.hpp b/hecl-gui/FindBlender.hpp index 186fe9253..d5420795d 100644 --- a/hecl-gui/FindBlender.hpp +++ b/hecl-gui/FindBlender.hpp @@ -1,5 +1,4 @@ -#ifndef FINDBLENDER_HPP -#define FINDBLENDER_HPP +#pragma once #include "hecl/hecl.hpp" @@ -10,4 +9,3 @@ hecl::SystemString FindBlender(int& major, int& minor); } -#endif // FINDBLENDER_HPP diff --git a/hecl-gui/LaunchMenu.hpp b/hecl-gui/LaunchMenu.hpp index 3000f5b5a..13aebfebb 100644 --- a/hecl-gui/LaunchMenu.hpp +++ b/hecl-gui/LaunchMenu.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_LAUNCHMENU_HPP -#define GUI_LAUNCHMENU_HPP +#pragma once #include namespace hecl { struct CVarCommons; } @@ -34,4 +33,3 @@ public slots: void developerModeTriggered(); }; -#endif // GUI_LAUNCHMENU_HPP diff --git a/hecl-gui/MacOSSystemVersion.hpp b/hecl-gui/MacOSSystemVersion.hpp index 56cfea455..ae4e122d4 100644 --- a/hecl-gui/MacOSSystemVersion.hpp +++ b/hecl-gui/MacOSSystemVersion.hpp @@ -1,6 +1,4 @@ -#ifndef GUI_MACOSSYSTEMVERSION_HPP -#define GUI_MACOSSYSTEMVERSION_HPP +#pragma once void GetMacOSSystemVersion(int& major, int& minor, int& patch); -#endif // GUI_MACOSSYSTEMVERSION_HPP diff --git a/hecl-gui/MainWindow.hpp b/hecl-gui/MainWindow.hpp index c0f6f9766..329219c38 100644 --- a/hecl-gui/MainWindow.hpp +++ b/hecl-gui/MainWindow.hpp @@ -1,5 +1,4 @@ -#ifndef MAINWINDOW_HPP -#define MAINWINDOW_HPP +#pragma once #include #include @@ -65,4 +64,3 @@ private: bool isPackageComplete() const; }; -#endif // MAINWINDOW_HPP diff --git a/hecl-gui/SysReqTableView.hpp b/hecl-gui/SysReqTableView.hpp index 778689ab2..8bf752b5a 100644 --- a/hecl-gui/SysReqTableView.hpp +++ b/hecl-gui/SysReqTableView.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_SYSREQTABLEVIEW_HPP -#define GUI_SYSREQTABLEVIEW_HPP +#pragma once #include #include "VectorISATableView.hpp" @@ -57,4 +56,3 @@ public: void updateFreeDiskSpace(const QString& path) { m_model.updateFreeDiskSpace(path); } }; -#endif // GUI_SYSREQTABLEVIEW_HPP diff --git a/hecl-gui/VectorISATableModel.hpp b/hecl-gui/VectorISATableModel.hpp index 46578f0dc..d7f1471b0 100644 --- a/hecl-gui/VectorISATableModel.hpp +++ b/hecl-gui/VectorISATableModel.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_VECTORISATABLEMODEL_HPP -#define GUI_VECTORISATABLEMODEL_HPP +#pragma once #include #include "zeus/Math.hpp" @@ -14,4 +13,3 @@ public: int rowCount(const QModelIndex& parent = QModelIndex()) const { return 1; } }; -#endif // GUI_VECTORISATABLEMODEL_HPP diff --git a/hecl-gui/VectorISATableModelIntel.hpp b/hecl-gui/VectorISATableModelIntel.hpp index c8dbdcdfa..0f11b0a0a 100644 --- a/hecl-gui/VectorISATableModelIntel.hpp +++ b/hecl-gui/VectorISATableModelIntel.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_VECTORISATABLEMODELINTEL_HPP -#define GUI_VECTORISATABLEMODELINTEL_HPP +#pragma once #include "VectorISATableModel.hpp" @@ -107,4 +106,3 @@ public: } }; -#endif // GUI_VECTORISATABLEMODELINTEL_HPP diff --git a/hecl-gui/VectorISATableView.hpp b/hecl-gui/VectorISATableView.hpp index d697d0079..fb10d8953 100644 --- a/hecl-gui/VectorISATableView.hpp +++ b/hecl-gui/VectorISATableView.hpp @@ -1,5 +1,4 @@ -#ifndef GUI_VECTORISATABLEVIEW_HPP -#define GUI_VECTORISATABLEVIEW_HPP +#pragma once #include #include "Common.hpp" @@ -25,4 +24,3 @@ public: bool willRun(VectorISA visa) const { return m_model.willRun(visa); } }; -#endif // GUI_VECTORISATABLEVIEW_HPP