Browse Source

Use pragma once

nordsoft 2 years ago
parent
commit
52cbb613ae

+ 1 - 4
mapeditor/mapsettings/abstractsettings.h

@@ -7,8 +7,7 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
-#ifndef ABSTRACTSETTINGS_H
-#define ABSTRACTSETTINGS_H
+#pragma once
 
 #include <QWidget>
 #include "../../lib/mapping/CMap.h"
@@ -66,5 +65,3 @@ public:
 signals:
 
 };
-
-#endif // ABSTRACTSETTINGS_H

+ 1 - 3
mapeditor/mapsettings/eventsettings.h

@@ -7,8 +7,7 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
-#ifndef EVENTSETTINGS_H
-#define EVENTSETTINGS_H
+#pragma once
 
 #include "abstractsettings.h"
 
@@ -38,4 +37,3 @@ private:
 	Ui::EventSettings *ui;
 };
 
-#endif // EVENTSETTINGS_H

+ 1 - 4
mapeditor/mapsettings/generalsettings.h

@@ -7,8 +7,7 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
-#ifndef GENERALSETTINGS_H
-#define GENERALSETTINGS_H
+#pragma once
 
 #include "abstractsettings.h"
 
@@ -33,5 +32,3 @@ private slots:
 private:
 	Ui::GeneralSettings *ui;
 };
-
-#endif // GENERALSETTINGS_H

+ 1 - 3
mapeditor/mapsettings/loseconditions.h

@@ -7,9 +7,8 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
+#pragma once
 
-#ifndef LOSECONDITIONS_H
-#define LOSECONDITIONS_H
 #include "abstractsettings.h"
 
 namespace Ui {
@@ -39,4 +38,3 @@ private:
 	QLineEdit * loseValueWidget = nullptr;
 };
 
-#endif // LOSECONDITIONS_H

+ 1 - 4
mapeditor/mapsettings/modsettings.h

@@ -7,8 +7,7 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
-#ifndef MODSETTINGS_H
-#define MODSETTINGS_H
+#pragma once
 
 #include "abstractsettings.h"
 
@@ -41,5 +40,3 @@ private:
 	Ui::ModSettings *ui;
 	const CMap * mapPointer = nullptr;
 };
-
-#endif // MODSETTINGS_H

+ 1 - 4
mapeditor/mapsettings/rumorsettings.h

@@ -7,8 +7,7 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
-#ifndef RUMORSETTINGS_H
-#define RUMORSETTINGS_H
+#pragma once
 
 #include "abstractsettings.h"
 
@@ -39,5 +38,3 @@ private slots:
 private:
 	Ui::RumorSettings *ui;
 };
-
-#endif // RUMORSETTINGS_H

+ 1 - 4
mapeditor/mapsettings/timedevent.h

@@ -7,8 +7,7 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
-#ifndef TIMEDEVENT_H
-#define TIMEDEVENT_H
+#pragma once
 
 #include <QDialog>
 
@@ -36,5 +35,3 @@ private:
 	Ui::TimedEvent *ui;
 	QListWidgetItem * target;
 };
-
-#endif // TIMEDEVENT_H

+ 1 - 4
mapeditor/mapsettings/victoryconditions.h

@@ -7,8 +7,7 @@
  * Full text of license available in license.txt file, in main folder
  *
  */
-#ifndef VICTORYCONDITIONS_H
-#define VICTORYCONDITIONS_H
+#pragma once
 
 #include "abstractsettings.h"
 
@@ -38,5 +37,3 @@ private:
 	QComboBox * victorySelectWidget = nullptr;
 	QLineEdit * victoryValueWidget = nullptr;
 };
-
-#endif // VICTORYCONDITIONS_H