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>
This commit is contained in:
hjk
2016-03-18 07:55:01 +01:00
parent 6b805c2172
commit 39a38d5679
2252 changed files with 2240 additions and 9056 deletions

View File

@@ -1,5 +1,4 @@
#ifndef EXAMPLE_GLOBAL_H
#define EXAMPLE_GLOBAL_H
#pragma once
#include <QtGlobal>
@@ -8,6 +7,3 @@
#else
# define EXAMPLESHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // EXAMPLE_GLOBAL_H

View File

@@ -1,5 +1,4 @@
#ifndef EXAMPLECONSTANTS_H
#define EXAMPLECONSTANTS_H
#pragma once
namespace Example {
namespace Constants {
@@ -9,6 +8,3 @@ const char MENU_ID[] = "Example.Menu";
} // namespace Example
} // namespace Constants
#endif // EXAMPLECONSTANTS_H

View File

@@ -1,5 +1,4 @@
#ifndef EXAMPLE_H
#define EXAMPLE_H
#pragma once
#include "example_global.h"
@@ -35,6 +34,3 @@ private:
} // namespace Internal
} // namespace Example
#endif // EXAMPLE_H