summaryrefslogtreecommitdiff
path: root/src/plugins/diffeditor
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-03-18 07:55:01 +0100
committerhjk <hjk@theqtcompany.com>2016-03-30 15:20:19 +0000
commit39a38d5679084b515276285c044d8a27e671adb1 (patch)
tree8f72b00aa4a7db53eb8e193119033edf1ae9b0e4 /src/plugins/diffeditor
parent6b805c217273b9d169aa7e8a78949e17179016bf (diff)
downloadqt-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/plugins/diffeditor')
-rw-r--r--src/plugins/diffeditor/diffeditor.h5
-rw-r--r--src/plugins/diffeditor/diffeditor_global.h5
-rw-r--r--src/plugins/diffeditor/diffeditorconstants.h5
-rw-r--r--src/plugins/diffeditor/diffeditorcontroller.h5
-rw-r--r--src/plugins/diffeditor/diffeditordocument.h5
-rw-r--r--src/plugins/diffeditor/diffeditorfactory.h5
-rw-r--r--src/plugins/diffeditor/diffeditoricons.h5
-rw-r--r--src/plugins/diffeditor/diffeditorplugin.h5
-rw-r--r--src/plugins/diffeditor/differ.h5
-rw-r--r--src/plugins/diffeditor/diffutils.h5
-rw-r--r--src/plugins/diffeditor/diffview.h5
-rw-r--r--src/plugins/diffeditor/selectabletexteditorwidget.h5
-rw-r--r--src/plugins/diffeditor/sidebysidediffeditorwidget.h5
-rw-r--r--src/plugins/diffeditor/unifieddiffeditorwidget.h5
14 files changed, 14 insertions, 56 deletions
diff --git a/src/plugins/diffeditor/diffeditor.h b/src/plugins/diffeditor/diffeditor.h
index 346b36c498..7539ff31d6 100644
--- a/src/plugins/diffeditor/diffeditor.h
+++ b/src/plugins/diffeditor/diffeditor.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITOR_H
-#define DIFFEDITOR_H
+#pragma once
#include "diffeditorcontroller.h"
@@ -111,5 +110,3 @@ private:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // DIFFEDITOR_H
diff --git a/src/plugins/diffeditor/diffeditor_global.h b/src/plugins/diffeditor/diffeditor_global.h
index 4a1ccb9a8c..763096abbf 100644
--- a/src/plugins/diffeditor/diffeditor_global.h
+++ b/src/plugins/diffeditor/diffeditor_global.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITOR_GLOBAL_H
-#define DIFFEDITOR_GLOBAL_H
+#pragma once
#include <QtGlobal>
@@ -33,5 +32,3 @@
#else
# define DIFFEDITOR_EXPORT Q_DECL_IMPORT
#endif
-
-#endif // DIFFEDITOR_GLOBAL_H
diff --git a/src/plugins/diffeditor/diffeditorconstants.h b/src/plugins/diffeditor/diffeditorconstants.h
index d9a1a5f9e3..1c9f605aa4 100644
--- a/src/plugins/diffeditor/diffeditorconstants.h
+++ b/src/plugins/diffeditor/diffeditorconstants.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITORCONSTANTS_H
-#define DIFFEDITORCONSTANTS_H
+#pragma once
#include <QtGlobal>
@@ -40,5 +39,3 @@ const char EXPAND_BRANCHES[] = "Branches: <Expand>";
} // namespace Constants
} // namespace DiffEditor
-
-#endif // DIFFEDITORCONSTANTS_H
diff --git a/src/plugins/diffeditor/diffeditorcontroller.h b/src/plugins/diffeditor/diffeditorcontroller.h
index 3eb7546610..f73524fff5 100644
--- a/src/plugins/diffeditor/diffeditorcontroller.h
+++ b/src/plugins/diffeditor/diffeditorcontroller.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITORCONTROLLER_H
-#define DIFFEDITORCONTROLLER_H
+#pragma once
#include "diffeditor_global.h"
#include "diffutils.h"
@@ -96,5 +95,3 @@ private:
};
} // namespace DiffEditor
-
-#endif // DIFFEDITORCONTROLLER_H
diff --git a/src/plugins/diffeditor/diffeditordocument.h b/src/plugins/diffeditor/diffeditordocument.h
index 936d465784..81d98bb42d 100644
--- a/src/plugins/diffeditor/diffeditordocument.h
+++ b/src/plugins/diffeditor/diffeditordocument.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITORDOCUMENT_H
-#define DIFFEDITORDOCUMENT_H
+#pragma once
#include "diffutils.h"
@@ -107,5 +106,3 @@ private:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // DIFFEDITORDOCUMENT_H
diff --git a/src/plugins/diffeditor/diffeditorfactory.h b/src/plugins/diffeditor/diffeditorfactory.h
index da54f39290..bea963632e 100644
--- a/src/plugins/diffeditor/diffeditorfactory.h
+++ b/src/plugins/diffeditor/diffeditorfactory.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITORFACTORY_H
-#define DIFFEDITORFACTORY_H
+#pragma once
#include "diffeditor_global.h"
@@ -46,5 +45,3 @@ public:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // DIFFEDITORFACTORY_H
diff --git a/src/plugins/diffeditor/diffeditoricons.h b/src/plugins/diffeditor/diffeditoricons.h
index d10bac9e6b..4db2c02dfc 100644
--- a/src/plugins/diffeditor/diffeditoricons.h
+++ b/src/plugins/diffeditor/diffeditoricons.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITORICONS_H
-#define DIFFEDITORICONS_H
+#pragma once
#include <utils/icon.h>
@@ -40,5 +39,3 @@ const Utils::Icon SIDEBYSIDE_DIFF({
} // namespace Icons
} // namespace DiffEditor
-
-#endif // DIFFEDITORICONS_H
diff --git a/src/plugins/diffeditor/diffeditorplugin.h b/src/plugins/diffeditor/diffeditorplugin.h
index 07c2cd6c4a..3f38425517 100644
--- a/src/plugins/diffeditor/diffeditorplugin.h
+++ b/src/plugins/diffeditor/diffeditorplugin.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFEDITORPLUGIN_H
-#define DIFFEDITORPLUGIN_H
+#pragma once
#include "diffeditor_global.h"
@@ -55,5 +54,3 @@ private slots:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // DIFFEDITORPLUGIN_H
diff --git a/src/plugins/diffeditor/differ.h b/src/plugins/diffeditor/differ.h
index ec8166afea..d841dd0bee 100644
--- a/src/plugins/diffeditor/differ.h
+++ b/src/plugins/diffeditor/differ.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFER_H
-#define DIFFER_H
+#pragma once
#include "diffeditor_global.h"
#include <QString>
@@ -114,5 +113,3 @@ private:
};
} // namespace DiffEditor
-
-#endif // DIFF_H
diff --git a/src/plugins/diffeditor/diffutils.h b/src/plugins/diffeditor/diffutils.h
index 2412bc5432..417309294b 100644
--- a/src/plugins/diffeditor/diffutils.h
+++ b/src/plugins/diffeditor/diffutils.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFUTILS_H
-#define DIFFUTILS_H
+#pragma once
#include "diffeditor_global.h"
@@ -149,5 +148,3 @@ public:
};
} // namespace DiffEditor
-
-#endif // DIFFUTILS_H
diff --git a/src/plugins/diffeditor/diffview.h b/src/plugins/diffeditor/diffview.h
index 2d2cdc6b88..bf5342f273 100644
--- a/src/plugins/diffeditor/diffview.h
+++ b/src/plugins/diffeditor/diffview.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIFFVIEW_H
-#define DIFFVIEW_H
+#pragma once
#include <coreplugin/id.h>
@@ -133,5 +132,3 @@ private:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // DIFFVIEW_H
diff --git a/src/plugins/diffeditor/selectabletexteditorwidget.h b/src/plugins/diffeditor/selectabletexteditorwidget.h
index 52eaa911f7..2d04c7b39e 100644
--- a/src/plugins/diffeditor/selectabletexteditorwidget.h
+++ b/src/plugins/diffeditor/selectabletexteditorwidget.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef SELECTABLETEXTEDITORWIDGET_H
-#define SELECTABLETEXTEDITORWIDGET_H
+#pragma once
#include <texteditor/texteditor.h>
@@ -66,5 +65,3 @@ private:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // SELECTABLETEXTEDITORWIDGET_H
diff --git a/src/plugins/diffeditor/sidebysidediffeditorwidget.h b/src/plugins/diffeditor/sidebysidediffeditorwidget.h
index 8eb7f4efca..bd6fcf3252 100644
--- a/src/plugins/diffeditor/sidebysidediffeditorwidget.h
+++ b/src/plugins/diffeditor/sidebysidediffeditorwidget.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef SIDEBYSIDEDIFFEDITORWIDGET_H
-#define SIDEBYSIDEDIFFEDITORWIDGET_H
+#pragma once
#include "diffutils.h"
@@ -119,5 +118,3 @@ private:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // SIDEBYSIDEDIFFEDITORWIDGET_H
diff --git a/src/plugins/diffeditor/unifieddiffeditorwidget.h b/src/plugins/diffeditor/unifieddiffeditorwidget.h
index abbf0d7780..7deb3bcecc 100644
--- a/src/plugins/diffeditor/unifieddiffeditorwidget.h
+++ b/src/plugins/diffeditor/unifieddiffeditorwidget.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef UNIFIEDDIFFEDITORWIDGET_H
-#define UNIFIEDDIFFEDITORWIDGET_H
+#pragma once
#include "diffutils.h"
#include "selectabletexteditorwidget.h"
@@ -141,5 +140,3 @@ private:
} // namespace Internal
} // namespace DiffEditor
-
-#endif // UNIFIEDDIFFEDITORWIDGET_H