summaryrefslogtreecommitdiff
path: root/src/plugins/glsleditor
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/plugins/glsleditor
parent6b805c217273b9d169aa7e8a78949e17179016bf (diff)
downloadqt-creator-39a38d5679084b515276285c044d8a27e671adb1.tar.gz
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/plugins/glsleditor')
-rw-r--r--src/plugins/glsleditor/glslautocompleter.h5
-rw-r--r--src/plugins/glsleditor/glslcompletionassist.h5
-rw-r--r--src/plugins/glsleditor/glsleditor.h5
-rw-r--r--src/plugins/glsleditor/glsleditorconstants.h5
-rw-r--r--src/plugins/glsleditor/glsleditorplugin.h5
-rw-r--r--src/plugins/glsleditor/glslhighlighter.h5
-rw-r--r--src/plugins/glsleditor/glslhoverhandler.h5
-rw-r--r--src/plugins/glsleditor/glslindenter.h5
8 files changed, 8 insertions, 32 deletions
diff --git a/src/plugins/glsleditor/glslautocompleter.h b/src/plugins/glsleditor/glslautocompleter.h
index c117d568d1..8f09d242cd 100644
--- a/src/plugins/glsleditor/glslautocompleter.h
+++ b/src/plugins/glsleditor/glslautocompleter.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLAUTOCOMPLETER_H
-#define GLSLAUTOCOMPLETER_H
+#pragma once
#include <texteditor/autocompleter.h>
@@ -50,5 +49,3 @@ public:
} // namespace Internal
} // namespace GlslEditor
-
-#endif // GLSLAUTOCOMPLETER_H
diff --git a/src/plugins/glsleditor/glslcompletionassist.h b/src/plugins/glsleditor/glslcompletionassist.h
index 8cc29e6c77..3714c3e383 100644
--- a/src/plugins/glsleditor/glslcompletionassist.h
+++ b/src/plugins/glsleditor/glslcompletionassist.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLCOMPLETIONASSIST_H
-#define GLSLCOMPLETIONASSIST_H
+#pragma once
#include "glsleditor.h"
@@ -138,5 +137,3 @@ private:
} // namespace Internal
} // namespace GlslEditor
-
-#endif // GLSLCOMPLETIONASSIST_H
diff --git a/src/plugins/glsleditor/glsleditor.h b/src/plugins/glsleditor/glsleditor.h
index 4c1deab1e0..99411bfe8b 100644
--- a/src/plugins/glsleditor/glsleditor.h
+++ b/src/plugins/glsleditor/glsleditor.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLEDITOR_H
-#define GLSLEDITOR_H
+#pragma once
#include <texteditor/texteditor.h>
@@ -43,5 +42,3 @@ public:
} // namespace Internal
} // namespace GlslEditor
-
-#endif // GLSLEDITOR_H
diff --git a/src/plugins/glsleditor/glsleditorconstants.h b/src/plugins/glsleditor/glsleditorconstants.h
index 6a5c973e61..8121517e0f 100644
--- a/src/plugins/glsleditor/glsleditorconstants.h
+++ b/src/plugins/glsleditor/glsleditorconstants.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLEDITOR_CONSTANTS_H
-#define GLSLEDITOR_CONSTANTS_H
+#pragma once
#include <QtGlobal>
@@ -50,5 +49,3 @@ const char WIZARD_TR_CATEGORY_GLSL[] = QT_TRANSLATE_NOOP("GLSLEditor", "GLSL");
} // namespace Constants
} // namespace GlslEditor
-
-#endif // GLSLEDITOR_CONSTANTS_H
diff --git a/src/plugins/glsleditor/glsleditorplugin.h b/src/plugins/glsleditor/glsleditorplugin.h
index e29e2fadae..31925dc7b9 100644
--- a/src/plugins/glsleditor/glsleditorplugin.h
+++ b/src/plugins/glsleditor/glsleditorplugin.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLEDITORPLUGIN_H
-#define GLSLEDITORPLUGIN_H
+#pragma once
#include <extensionsystem/iplugin.h>
#include <glsl/glsl.h>
@@ -67,5 +66,3 @@ public:
} // namespace Internal
} // namespace GlslEditor
-
-#endif // GLSLEDITORPLUGIN_H
diff --git a/src/plugins/glsleditor/glslhighlighter.h b/src/plugins/glsleditor/glslhighlighter.h
index c2329d1fbe..afbe882a41 100644
--- a/src/plugins/glsleditor/glslhighlighter.h
+++ b/src/plugins/glsleditor/glslhighlighter.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLHIGHLIGHTER_H
-#define GLSLHIGHLIGHTER_H
+#pragma once
#include <texteditor/syntaxhighlighter.h>
@@ -62,5 +61,3 @@ protected:
} // namespace Internal
} // namespace GlslEditor
-
-#endif // GLSLHIGHLIGHTER_H
diff --git a/src/plugins/glsleditor/glslhoverhandler.h b/src/plugins/glsleditor/glslhoverhandler.h
index d7cc27a4bf..f15c8b9948 100644
--- a/src/plugins/glsleditor/glslhoverhandler.h
+++ b/src/plugins/glsleditor/glslhoverhandler.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLHOVERHANDLER_H
-#define GLSLHOVERHANDLER_H
+#pragma once
#include <texteditor/basehoverhandler.h>
@@ -43,5 +42,3 @@ private:
} // namespace Internal
} // namespace GlslEditor
-
-#endif // GLSLHOVERHANDLER_H
diff --git a/src/plugins/glsleditor/glslindenter.h b/src/plugins/glsleditor/glslindenter.h
index 499c99a164..e52a024b10 100644
--- a/src/plugins/glsleditor/glslindenter.h
+++ b/src/plugins/glsleditor/glslindenter.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef GLSLINDENTER_H
-#define GLSLINDENTER_H
+#pragma once
#include <texteditor/indenter.h>
@@ -53,5 +52,3 @@ public:
} // namespace Internal
} // namespace GlslEditor
-
-#endif // GLSLINDENTER_H