forked from qt-creator/qt-creator
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:
+1
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user