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
+1 -4
View File
@@ -1,4 +1 @@
#ifndef HEADER_H
#define HEADER_H
#endif // HEADER_H
#pragma once
@@ -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
@@ -1,12 +1,9 @@
// Copyright header
#ifndef FOO_H
#define FOO_H
#pragma once
class Foo
{
public:
Foo();
};
#endif // FOO_H
@@ -1,12 +1,9 @@
// Copyright header
#ifndef BAR_H
#define BAR_H
#pragma once
class Bar
{
public:
Bar();
};
#endif // BAR_H