Replace include guards with #pragma once

Change-Id: Ic36cf0e9cac61d4d9a7e4434192944f5301b8aaa
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2017-06-28 10:07:01 +03:00
committed by Orgad Shaneh
parent ece8b17ab2
commit b57372f2b5
9 changed files with 9 additions and 36 deletions

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef OUTPUT_COLLECTOR_H #pragma once
#define OUTPUT_COLLECTOR_H
#include <QObject> #include <QObject>
@@ -74,5 +73,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace Debugger } // namespace Debugger
#endif // OUTPUT_COLLECTOR_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef AUTHENTICATIONDIALOG_H #pragma once
#define AUTHENTICATIONDIALOG_H
#include <QCoreApplication> #include <QCoreApplication>
#include <QDialog> #include <QDialog>
@@ -63,5 +62,3 @@ private:
} // Internal } // Internal
} // Gerrit } // Gerrit
#endif // AUTHENTICATIONDIALOG_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef EXPORTDIALOG_H #pragma once
#define EXPORTDIALOG_H
#include <QDialog> #include <QDialog>
@@ -66,5 +65,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace ImageViewer } // namespace ImageViewer
#endif // EXPORTDIALOG_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef QBSBUILDINFO_H #pragma once
#define QBSBUILDINFO_H
#include <projectexplorer/buildinfo.h> #include <projectexplorer/buildinfo.h>
@@ -47,5 +46,3 @@ private:
} // namespace Internal } // namespace Internal
} // namespace QbsProjectManager } // namespace QbsProjectManager
#endif // QBSBUILDINFO_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef QBSPMLOGGING_P_H #pragma once
#define QBSPMLOGGING_P_H
#include <QLoggingCategory> #include <QLoggingCategory>
@@ -33,5 +32,3 @@ namespace Internal {
Q_DECLARE_LOGGING_CATEGORY(qbsPmLog) Q_DECLARE_LOGGING_CATEGORY(qbsPmLog)
} }
} }
#endif // Include guard

View File

@@ -37,8 +37,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef JSONVALUE_H #pragma once
#define JSONVALUE_H
#include <cstdint> #include <cstdint>
#include <initializer_list> #include <initializer_list>
@@ -585,5 +584,3 @@ private:
}; };
} // namespace Json } // namespace Json
#endif // JSONVALUE_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef TESTCORE_H #pragma once
#define TESTCORE_H
#include <QObject> #include <QObject>
@@ -231,5 +230,3 @@ private slots:
void loadGradient(); void loadGradient();
void changeGradientId(); void changeGradientId();
}; };
#endif // TESTCORE_H

View File

@@ -23,8 +23,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef SIMPLE_DEBUGGER_TEST_H #pragma once
#define SIMPLE_DEBUGGER_TEST_H
namespace breakpoints { namespace breakpoints {
@@ -149,5 +148,3 @@ namespace breakpoints {
} }
} // namespace breakpoints } // namespace breakpoints
#endif // SIMPLE_DEBUGGER_TEST_H

View File

@@ -24,8 +24,7 @@
** **
****************************************************************************/ ****************************************************************************/
#ifndef MYBACKENDOBJECT_H #pragma once
#define MYBACKENDOBJECT_H
#include <QObject> #include <QObject>
@@ -43,5 +42,3 @@ public:
public slots: public slots:
}; };
#endif // MYBACKENDOBJECT_H