aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/aggregation
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-03-18 07:55:01 +0100
committerhjk <hjk@theqtcompany.com>2016-03-30 15:20:19 +0000
commit39a38d5679084b515276285c044d8a27e671adb1 (patch)
tree8f72b00aa4a7db53eb8e193119033edf1ae9b0e4 /src/libs/aggregation
parent6b805c217273b9d169aa7e8a78949e17179016bf (diff)
Wholesale conversion to #pragma once
Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/libs/aggregation')
-rw-r--r--src/libs/aggregation/aggregate.h5
-rw-r--r--src/libs/aggregation/aggregation_global.h5
-rw-r--r--src/libs/aggregation/examples/text/main.h5
-rw-r--r--src/libs/aggregation/examples/text/myinterfaces.h5
4 files changed, 4 insertions, 16 deletions
diff --git a/src/libs/aggregation/aggregate.h b/src/libs/aggregation/aggregate.h
index 47243846c4..8404e96d30 100644
--- a/src/libs/aggregation/aggregate.h
+++ b/src/libs/aggregation/aggregate.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef AGGREGATE_H
-#define AGGREGATE_H
+#pragma once
#include "aggregation_global.h"
@@ -126,5 +125,3 @@ template <typename T> QList<T *> query_all(QObject *obj)
}
} // namespace Aggregation
-
-#endif // AGGREGATE_H
diff --git a/src/libs/aggregation/aggregation_global.h b/src/libs/aggregation/aggregation_global.h
index 3b1d7140c6..e91129202a 100644
--- a/src/libs/aggregation/aggregation_global.h
+++ b/src/libs/aggregation/aggregation_global.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef AGGREGATION_GLOBAL_H
-#define AGGREGATION_GLOBAL_H
+#pragma once
#include <qglobal.h>
@@ -33,5 +32,3 @@
#else
# define AGGREGATION_EXPORT Q_DECL_IMPORT
#endif
-
-#endif // AGGREGATION_GLOBAL_H
diff --git a/src/libs/aggregation/examples/text/main.h b/src/libs/aggregation/examples/text/main.h
index 53482ea894..76d0ec0191 100644
--- a/src/libs/aggregation/examples/text/main.h
+++ b/src/libs/aggregation/examples/text/main.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef MAIN_H
-#define MAIN_H
+#pragma once
#include "myinterfaces.h"
#include "ui_main.h"
@@ -51,5 +50,3 @@ private:
QList<IComboEntry *> m_entries;
};
-
-#endif // MAIN_H
diff --git a/src/libs/aggregation/examples/text/myinterfaces.h b/src/libs/aggregation/examples/text/myinterfaces.h
index 696c49bc9d..3dcdc6f0c3 100644
--- a/src/libs/aggregation/examples/text/myinterfaces.h
+++ b/src/libs/aggregation/examples/text/myinterfaces.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef MYINTERFACES_H
-#define MYINTERFACES_H
+#pragma once
#include <aggregate.h>
@@ -80,5 +79,3 @@ public:
private:
QString m_text;
};
-
-#endif // MYINTERFACES_H