diff options
author | hjk <hjk@theqtcompany.com> | 2016-03-18 07:55:01 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-03-30 15:20:19 +0000 |
commit | 39a38d5679084b515276285c044d8a27e671adb1 (patch) | |
tree | 8f72b00aa4a7db53eb8e193119033edf1ae9b0e4 /src/libs/glsl | |
parent | 6b805c217273b9d169aa7e8a78949e17179016bf (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/glsl')
-rw-r--r-- | src/libs/glsl/glsl.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslast.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslastdump.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslastvisitor.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslengine.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glsllexer.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslmemorypool.h | 6 | ||||
-rw-r--r-- | src/libs/glsl/glslparsertable_p.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslsemantic.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslsymbol.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glslsymbols.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glsltype.h | 5 | ||||
-rw-r--r-- | src/libs/glsl/glsltypes.h | 5 |
13 files changed, 13 insertions, 53 deletions
diff --git a/src/libs/glsl/glsl.h b/src/libs/glsl/glsl.h index 868d3c9271..bc5515ab05 100644 --- a/src/libs/glsl/glsl.h +++ b/src/libs/glsl/glsl.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSL_H -#define GLSL_H +#pragma once #include <qglobal.h> #include <cstdlib> @@ -75,5 +74,3 @@ class AST; class TranslationUnitAST; template <typename T> class List; } - -#endif // GLSL_H diff --git a/src/libs/glsl/glslast.h b/src/libs/glsl/glslast.h index 988e4b88a8..3711b30bdf 100644 --- a/src/libs/glsl/glslast.h +++ b/src/libs/glsl/glslast.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLAST_H -#define GLSLAST_H +#pragma once #include "glsl.h" #include "glslmemorypool.h" @@ -992,5 +991,3 @@ public: // attributes }; } // namespace GLSL - -#endif // GLSLAST_H diff --git a/src/libs/glsl/glslastdump.h b/src/libs/glsl/glslastdump.h index 086d158f0b..8213b913f1 100644 --- a/src/libs/glsl/glslastdump.h +++ b/src/libs/glsl/glslastdump.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLASTDUMP_H -#define GLSLASTDUMP_H +#pragma once #include "glslastvisitor.h" @@ -49,5 +48,3 @@ private: }; } // namespace GLSL - -#endif // GLSLASTDUMP_H diff --git a/src/libs/glsl/glslastvisitor.h b/src/libs/glsl/glslastvisitor.h index 65816d8703..4cd3530de8 100644 --- a/src/libs/glsl/glslastvisitor.h +++ b/src/libs/glsl/glslastvisitor.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLASTVISITOR_H -#define GLSLASTVISITOR_H +#pragma once #include "glslast.h" @@ -154,5 +153,3 @@ public: }; } // namespace GLSL - -#endif // GLSLASTVISITOR_H diff --git a/src/libs/glsl/glslengine.h b/src/libs/glsl/glslengine.h index eeb6697585..6b126111f6 100644 --- a/src/libs/glsl/glslengine.h +++ b/src/libs/glsl/glslengine.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLENGINE_H -#define GLSLENGINE_H +#pragma once #include "glsl.h" #include "glslmemorypool.h" @@ -142,5 +141,3 @@ private: }; } // namespace GLSL - -#endif // GLSLENGINE_H diff --git a/src/libs/glsl/glsllexer.h b/src/libs/glsl/glsllexer.h index 384688042d..2b0ad83fed 100644 --- a/src/libs/glsl/glsllexer.h +++ b/src/libs/glsl/glsllexer.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLLEXER_H -#define GLSLLEXER_H +#pragma once #include "glsl.h" #include <qstring.h> @@ -129,5 +128,3 @@ private: }; } // namespace GLSL - -#endif // GLSLLEXER_H diff --git a/src/libs/glsl/glslmemorypool.h b/src/libs/glsl/glslmemorypool.h index fd55187c96..b33728b115 100644 --- a/src/libs/glsl/glslmemorypool.h +++ b/src/libs/glsl/glslmemorypool.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLMEMORYPOOL_H -#define GLSLMEMORYPOOL_H +#pragma once #include "glsl.h" #include <new> @@ -87,6 +86,3 @@ public: }; } // namespace GLSL - - -#endif // GLSLMEMORYPOOL_H diff --git a/src/libs/glsl/glslparsertable_p.h b/src/libs/glsl/glslparsertable_p.h index 667b85b836..b046b5df7a 100644 --- a/src/libs/glsl/glslparsertable_p.h +++ b/src/libs/glsl/glslparsertable_p.h @@ -35,8 +35,7 @@ // // This file was generated by qlalr - DO NOT EDIT! -#ifndef GLSLPARSERTABLE_P_H -#define GLSLPARSERTABLE_P_H +#pragma once #include <qglobal.h> @@ -264,5 +263,3 @@ public: QT_END_NAMESPACE -#endif // GLSLPARSERTABLE_P_H - diff --git a/src/libs/glsl/glslsemantic.h b/src/libs/glsl/glslsemantic.h index 8347604995..9c21a7a4be 100644 --- a/src/libs/glsl/glslsemantic.h +++ b/src/libs/glsl/glslsemantic.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLSEMANTIC_H -#define GLSLSEMANTIC_H +#pragma once #include "glslastvisitor.h" #include "glsltype.h" @@ -127,5 +126,3 @@ private: }; } // namespace GLSL - -#endif // GLSLSEMANTIC_H diff --git a/src/libs/glsl/glslsymbol.h b/src/libs/glsl/glslsymbol.h index cc91525646..db5c0dab9b 100644 --- a/src/libs/glsl/glslsymbol.h +++ b/src/libs/glsl/glslsymbol.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLSYMBOL_H -#define GLSLSYMBOL_H +#pragma once #include "glsl.h" #include <QString> @@ -77,5 +76,3 @@ public: }; } // namespace GLSL - -#endif // GLSLSYMBOL_H diff --git a/src/libs/glsl/glslsymbols.h b/src/libs/glsl/glslsymbols.h index 1a381c4495..32fde05bbb 100644 --- a/src/libs/glsl/glslsymbols.h +++ b/src/libs/glsl/glslsymbols.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLSYMBOLS_H -#define GLSLSYMBOLS_H +#pragma once #include "glsltype.h" #include "glslsymbol.h" @@ -103,5 +102,3 @@ private: }; } // namespace GLSL - -#endif // GLSLSYMBOLS_H diff --git a/src/libs/glsl/glsltype.h b/src/libs/glsl/glsltype.h index 265959c1aa..94aa422937 100644 --- a/src/libs/glsl/glsltype.h +++ b/src/libs/glsl/glsltype.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLTYPE_H -#define GLSLTYPE_H +#pragma once #include "glsl.h" @@ -60,5 +59,3 @@ public: }; } // namespace GLSL - -#endif // GLSLTYPE_H diff --git a/src/libs/glsl/glsltypes.h b/src/libs/glsl/glsltypes.h index 2b53ebfe37..5e89b0c3a4 100644 --- a/src/libs/glsl/glsltypes.h +++ b/src/libs/glsl/glsltypes.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GLSLTYPES_H -#define GLSLTYPES_H +#pragma once #include "glsltype.h" #include "glslsymbol.h" @@ -290,5 +289,3 @@ private: }; } // namespace GLSL - -#endif // GLSLTYPES_H |