diff --git a/src/gui/src/Action.h b/src/gui/src/Action.h
index be4c7338a..63c1ff1de 100644
--- a/src/gui/src/Action.h
+++ b/src/gui/src/Action.h
@@ -16,9 +16,7 @@
* along with this program. If not, see .
*/
-#if !defined(ACTION_H)
-
-#define ACTION_H
+#pragma once
#include "KeySequence.h"
@@ -100,5 +98,3 @@ private:
typedef QList ActionList;
QTextStream &operator<<(QTextStream &outStream, const Action &action);
-
-#endif
diff --git a/src/gui/src/ActionDialog.h b/src/gui/src/ActionDialog.h
index 373e2ac11..ce40bd69a 100644
--- a/src/gui/src/ActionDialog.h
+++ b/src/gui/src/ActionDialog.h
@@ -16,9 +16,7 @@
* along with this program. If not, see .
*/
-#if !defined(ACTIONDIALOG_H)
-
-#define ACTIONDIALOG_H
+#pragma once
#include
@@ -54,5 +52,3 @@ private:
QButtonGroup *m_pButtonGroupType;
};
-
-#endif
diff --git a/src/gui/src/AddClientDialog.h b/src/gui/src/AddClientDialog.h
index 5c88c0df6..b7f552b88 100644
--- a/src/gui/src/AddClientDialog.h
+++ b/src/gui/src/AddClientDialog.h
@@ -15,8 +15,7 @@
* along with this program. If not, see .
*/
-#ifndef ADDCLIENTDIALOG_H
-#define ADDCLIENTDIALOG_H
+#pragma once
#include "ui_AddClientDialogBase.h"
@@ -57,5 +56,3 @@ private:
QLabel *m_pLabelCenter;
int m_AddResult;
};
-
-#endif // ADDCLIENTDIALOG_H
diff --git a/src/gui/src/AppDelegate.h b/src/gui/src/AppDelegate.h
index 808d40b9a..6d9f99a5c 100644
--- a/src/gui/src/AppDelegate.h
+++ b/src/gui/src/AppDelegate.h
@@ -1,5 +1,4 @@
-#ifndef APPDELEGATE_H
-#define APPDELEGATE_H
+#pragma once
#ifdef __cplusplus
extern "C" {
#endif
@@ -21,4 +20,3 @@ extern "C" {
#ifdef __cplusplus
}
#endif
-#endif // APPDELEGATE_H
diff --git a/src/gui/src/DataDownloader.h b/src/gui/src/DataDownloader.h
index 7bf455ae7..e37f8600d 100644
--- a/src/gui/src/DataDownloader.h
+++ b/src/gui/src/DataDownloader.h
@@ -15,8 +15,7 @@
* along with this program. If not, see .
*/
-#ifndef DATADOWNLOADER_H
-#define DATADOWNLOADER_H
+#pragma once
#include
#include
@@ -48,5 +47,3 @@ private:
QNetworkReply *m_pReply;
bool m_IsFinished;
};
-
-#endif // DATADOWNLOADER_H
diff --git a/src/gui/src/Hotkey.h b/src/gui/src/Hotkey.h
index 37463361b..4f2037a2b 100644
--- a/src/gui/src/Hotkey.h
+++ b/src/gui/src/Hotkey.h
@@ -15,10 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
-#if !defined(HOTKEY_H)
-
-#define HOTKEY_H
+#pragma once
#include
#include
@@ -62,5 +59,3 @@ private:
typedef QList HotkeyList;
QTextStream &operator<<(QTextStream &outStream, const Hotkey &hotkey);
-
-#endif
diff --git a/src/gui/src/HotkeyDialog.h b/src/gui/src/HotkeyDialog.h
index cec916211..d13e220b6 100644
--- a/src/gui/src/HotkeyDialog.h
+++ b/src/gui/src/HotkeyDialog.h
@@ -15,10 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
-#if !defined(HOTKEYDIALOG_H)
-
-#define HOTKEYDIALOG_H
+#pragma once
#include "Hotkey.h"
#include "ui_HotkeyDialogBase.h"
@@ -46,5 +43,3 @@ protected:
private:
Hotkey &m_Hotkey;
};
-
-#endif
diff --git a/src/gui/src/KeySequence.h b/src/gui/src/KeySequence.h
index d7863f706..712aa3f14 100644
--- a/src/gui/src/KeySequence.h
+++ b/src/gui/src/KeySequence.h
@@ -16,9 +16,7 @@
* along with this program. If not, see .
*/
-#if !defined(KEYSEQUENCE_H)
-
-#define KEYSEQUENCE_H
+#pragma once
#include
#include
@@ -54,5 +52,3 @@ private:
static QString keyToString(int key);
};
-
-#endif
diff --git a/src/gui/src/KeySequenceWidget.h b/src/gui/src/KeySequenceWidget.h
index 6a7acf97d..2f66037a3 100644
--- a/src/gui/src/KeySequenceWidget.h
+++ b/src/gui/src/KeySequenceWidget.h
@@ -15,10 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
-#if !defined(KEYSEQUENCEWIDGET__H)
-
-#define KEYSEQUENCEWIDGET__H
+#pragma once
#include
@@ -75,5 +72,3 @@ private:
QString m_KeyPrefix;
QString m_KeyPostfix;
};
-
-#endif
diff --git a/src/gui/src/ServerConfigDialog.h b/src/gui/src/ServerConfigDialog.h
index a71170a2b..bf6d55a04 100644
--- a/src/gui/src/ServerConfigDialog.h
+++ b/src/gui/src/ServerConfigDialog.h
@@ -16,9 +16,7 @@
* along with this program. If not, see .
*/
-#if !defined(SERVERCONFIGDIALOG__H)
-
-#define SERVERCONFIGDIALOG__H
+#pragma once
#include "ScreenSetupModel.h"
#include "ServerConfig.h"
@@ -78,5 +76,3 @@ private:
private slots:
void onChange();
};
-
-#endif
diff --git a/src/gui/src/TrashScreenWidget.h b/src/gui/src/TrashScreenWidget.h
index d50e0ed33..29879a338 100644
--- a/src/gui/src/TrashScreenWidget.h
+++ b/src/gui/src/TrashScreenWidget.h
@@ -15,10 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
-#if !defined(TRASHSCREENWIDGET__H)
-
-#define TRASHSCREENWIDGET__H
+#pragma once
#include
@@ -39,5 +36,3 @@ public:
signals:
void screenRemoved();
};
-
-#endif
diff --git a/src/lib/arch/vsnprintf.h b/src/lib/arch/vsnprintf.h
index c0dc7dfe8..2db258ccf 100644
--- a/src/lib/arch/vsnprintf.h
+++ b/src/lib/arch/vsnprintf.h
@@ -16,6 +16,8 @@
* along with this program. If not, see .
*/
+#pragma once
+
#include "arch/IArchString.h"
#if HAVE_VSNPRINTF
diff --git a/src/lib/base/Path.h b/src/lib/base/Path.h
index f375aee44..45f1bad9f 100644
--- a/src/lib/base/Path.h
+++ b/src/lib/base/Path.h
@@ -14,8 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-#ifndef DESKFLOW_PATH_H
-#define DESKFLOW_PATH_H
+#pragma once
#include "String.h"
@@ -32,5 +31,3 @@ std::string path(const String &filePath);
} // namespace filesystem
} // namespace deskflow
-
-#endif // DESKFLOW_PATH_H
diff --git a/src/lib/common/MacOSXPrecomp.h b/src/lib/common/MacOSXPrecomp.h
index 18a43ceb1..e349ad3ae 100644
--- a/src/lib/common/MacOSXPrecomp.h
+++ b/src/lib/common/MacOSXPrecomp.h
@@ -20,5 +20,5 @@
// Prefix header for all source files of the 'deleteme' target in the 'deleteme'
// project.
//
-
+#pragma once
#include
diff --git a/src/lib/common/stdbitset.h b/src/lib/common/stdbitset.h
index 49f0712ea..31a78274a 100644
--- a/src/lib/common/stdbitset.h
+++ b/src/lib/common/stdbitset.h
@@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+#pragma once
#include "common/stdpre.h"
diff --git a/src/lib/common/stddeque.h b/src/lib/common/stddeque.h
index 689aa5a3f..157e59859 100644
--- a/src/lib/common/stddeque.h
+++ b/src/lib/common/stddeque.h
@@ -15,9 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+#pragma once
#include "common/stdpre.h"
#include
-#include "common/stdpost.h"
\ No newline at end of file
+#include "common/stdpost.h"
diff --git a/src/lib/common/stdexcept.h b/src/lib/common/stdexcept.h
index 225499424..aed3defc9 100644
--- a/src/lib/common/stdexcept.h
+++ b/src/lib/common/stdexcept.h
@@ -15,6 +15,8 @@
* along with this program. If not, see .
*/
+#pragma once
+
#include
// apple declares _NOEXCEPT
diff --git a/src/lib/common/stdfstream.h b/src/lib/common/stdfstream.h
index 825693760..243c56994 100644
--- a/src/lib/common/stdfstream.h
+++ b/src/lib/common/stdfstream.h
@@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+#pragma once
#include "common/stdpre.h"
diff --git a/src/lib/common/stdistream.h b/src/lib/common/stdistream.h
index b51a8a9fe..154d1a80c 100644
--- a/src/lib/common/stdistream.h
+++ b/src/lib/common/stdistream.h
@@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+#pragma once
#include "common/stdpre.h"
diff --git a/src/lib/common/stdlist.h b/src/lib/common/stdlist.h
index 253b5656c..384e4fcb4 100644
--- a/src/lib/common/stdlist.h
+++ b/src/lib/common/stdlist.h
@@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+#pragma once
#include "common/stdpre.h"
diff --git a/src/lib/common/stdmap.h b/src/lib/common/stdmap.h
index c11d65e93..5d855dcc2 100644
--- a/src/lib/common/stdmap.h
+++ b/src/lib/common/stdmap.h
@@ -15,9 +15,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+#pragma once
#include "common/stdpre.h"
#include