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 /tests/cppmodelmanager | |
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 'tests/cppmodelmanager')
4 files changed, 4 insertions, 16 deletions
diff --git a/tests/cppmodelmanager/testdata/include/header.h b/tests/cppmodelmanager/testdata/include/header.h index 689ec03871..6f70f09bee 100644 --- a/tests/cppmodelmanager/testdata/include/header.h +++ b/tests/cppmodelmanager/testdata/include/header.h @@ -1,4 +1 @@ -#ifndef HEADER_H -#define HEADER_H - -#endif // HEADER_H +#pragma once diff --git a/tests/cppmodelmanager/testdata_guiproject1/mainwindow.h b/tests/cppmodelmanager/testdata_guiproject1/mainwindow.h index 6dae9639b6..7930d5f5f8 100644 --- a/tests/cppmodelmanager/testdata_guiproject1/mainwindow.h +++ b/tests/cppmodelmanager/testdata_guiproject1/mainwindow.h @@ -1,7 +1,6 @@ // Copyright license -#ifndef MAINWINDOW_H -#define MAINWINDOW_H +#pragma once #include <QMainWindow> @@ -20,5 +19,3 @@ public: private: Ui::MainWindow *ui; }; - -#endif // MAINWINDOW_H diff --git a/tests/cppmodelmanager/testdata_project1/foo.h b/tests/cppmodelmanager/testdata_project1/foo.h index b427107633..ea1cfa542a 100644 --- a/tests/cppmodelmanager/testdata_project1/foo.h +++ b/tests/cppmodelmanager/testdata_project1/foo.h @@ -1,12 +1,9 @@ // Copyright header -#ifndef FOO_H -#define FOO_H +#pragma once class Foo { public: Foo(); }; - -#endif // FOO_H diff --git a/tests/cppmodelmanager/testdata_project2/bar.h b/tests/cppmodelmanager/testdata_project2/bar.h index abb6e59877..45702c5d0a 100644 --- a/tests/cppmodelmanager/testdata_project2/bar.h +++ b/tests/cppmodelmanager/testdata_project2/bar.h @@ -1,12 +1,9 @@ // Copyright header -#ifndef BAR_H -#define BAR_H +#pragma once class Bar { public: Bar(); }; - -#endif // BAR_H |