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/languageutils | |
parent | 6b805c217273b9d169aa7e8a78949e17179016bf (diff) | |
download | qt-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/libs/languageutils')
-rw-r--r-- | src/libs/languageutils/componentversion.h | 5 | ||||
-rw-r--r-- | src/libs/languageutils/fakemetaobject.h | 5 | ||||
-rw-r--r-- | src/libs/languageutils/languageutils_global.h | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/src/libs/languageutils/componentversion.h b/src/libs/languageutils/componentversion.h index 7bdbc26b5e..8e271bccab 100644 --- a/src/libs/languageutils/componentversion.h +++ b/src/libs/languageutils/componentversion.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef COMPONENTVERSION_H -#define COMPONENTVERSION_H +#pragma once #include "languageutils_global.h" @@ -66,5 +65,3 @@ bool LANGUAGEUTILS_EXPORT operator==(const ComponentVersion &lhs, const Componen bool LANGUAGEUTILS_EXPORT operator!=(const ComponentVersion &lhs, const ComponentVersion &rhs); } // namespace LanguageUtils - -#endif // COMPONENTVERSION_H diff --git a/src/libs/languageutils/fakemetaobject.h b/src/libs/languageutils/fakemetaobject.h index 8ea96eeb37..543d80b45c 100644 --- a/src/libs/languageutils/fakemetaobject.h +++ b/src/libs/languageutils/fakemetaobject.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef FAKEMETAOBJECT_H -#define FAKEMETAOBJECT_H +#pragma once #include "languageutils_global.h" #include "componentversion.h" @@ -230,5 +229,3 @@ public: }; } // namespace LanguageUtils - -#endif // FAKEMETAOBJECT_H diff --git a/src/libs/languageutils/languageutils_global.h b/src/libs/languageutils/languageutils_global.h index a74345fc81..9de119ef98 100644 --- a/src/libs/languageutils/languageutils_global.h +++ b/src/libs/languageutils/languageutils_global.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef LANGUAGEUTILS_GLOBAL_H -#define LANGUAGEUTILS_GLOBAL_H +#pragma once #include <qglobal.h> @@ -35,5 +34,3 @@ #else # define LANGUAGEUTILS_EXPORT Q_DECL_IMPORT #endif - -#endif // LANGUAGEUTILS_GLOBAL_H |