Commit 39a38d56 authored by hjk's avatar hjk

Wholesale conversion to #pragma once

Kudos to cgmb and https://github.com/cgmb/guardonce

Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 6b805c21

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

#ifndef EXAMPLE_GLOBAL_H
#define EXAMPLE_GLOBAL_H
#pragma once
#include <QtGlobal>
......@@ -8,6 +7,3 @@
#else
# define EXAMPLESHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // EXAMPLE_GLOBAL_H
#ifndef EXAMPLECONSTANTS_H
#define EXAMPLECONSTANTS_H
#pragma once
namespace Example {
namespace Constants {
......@@ -9,6 +8,3 @@ const char MENU_ID[] = "Example.Menu";
} // namespace Example
} // namespace Constants
#endif // EXAMPLECONSTANTS_H
#ifndef EXAMPLE_H
#define EXAMPLE_H
#pragma once
#include "example_global.h"
......@@ -35,6 +34,3 @@ private:
} // namespace Internal
} // namespace Example
#endif // EXAMPLE_H
......@@ -48,8 +48,7 @@
**
****************************************************************************/
#ifndef TEXTFINDER_H
#define TEXTFINDER_H
#pragma once
#include "ui_textfinder.h"
......@@ -77,5 +76,3 @@ private:
void loadTextFile();
//! [0]
};
#endif // TEXTFINDER_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHANGEAUXILIARYCOMMAND_H
#define CHANGEAUXILIARYCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -56,5 +55,3 @@ QDebug operator <<(QDebug debug, const ChangeAuxiliaryCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeAuxiliaryCommand)
#endif // CHANGEAUXILIARYCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHANGEBINDINGSCOMMAND_H
#define CHANGEBINDINGSCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -56,5 +55,3 @@ QDebug operator <<(QDebug debug, const ChangeBindingsCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeBindingsCommand)
#endif // CHANGEBINDINGSCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHANGEFILEURLCOMMAND_H
#define CHANGEFILEURLCOMMAND_H
#pragma once
#include <qmetatype.h>
#include <QUrl>
......@@ -53,5 +52,3 @@ QDebug operator <<(QDebug debug, const ChangeFileUrlCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeFileUrlCommand)
#endif // CHANGEFILEURLCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHANGEIDSCOMMAND_H
#define CHANGEIDSCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -57,5 +56,3 @@ QDebug operator <<(QDebug debug, const ChangeIdsCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeIdsCommand)
#endif // CHANGEIDSCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHANGENODESOURCECOMMAND_H
#define CHANGENODESOURCECOMMAND_H
#pragma once
#include <QMetaType>
#include <QString>
......@@ -56,5 +55,3 @@ QDebug operator <<(QDebug debug, const ChangeNodeSourceCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeNodeSourceCommand)
#endif // CHANGENODESOURCECOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHANGESTATECOMMAND_H
#define CHANGESTATECOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -56,5 +55,3 @@ QDebug operator <<(QDebug debug, const ChangeStateCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeStateCommand)
#endif // CHANGESTATECOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHANGEVALUESCOMMAND_H
#define CHANGEVALUESCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -56,5 +55,3 @@ QDebug operator <<(QDebug debug, const ChangeValuesCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChangeValuesCommand)
#endif // CHANGEVALUESCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CHILDRENCHANGEDCOMMAND_H
#define CHILDRENCHANGEDCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -62,5 +61,3 @@ QDebug operator <<(QDebug debug, const ChildrenChangedCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ChildrenChangedCommand)
#endif // CHILDRENCHANGEDCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CLEARSCENECOMMAND_H
#define CLEARSCENECOMMAND_H
#pragma once
#include <qmetatype.h>
......@@ -44,5 +43,3 @@ QDebug operator <<(QDebug debug, const ClearSceneCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ClearSceneCommand)
#endif // CLEARSCENECOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef COMPLETECOMPONENT_H
#define COMPLETECOMPONENT_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -55,5 +54,3 @@ QDebug operator <<(QDebug debug, const CompleteComponentCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::CompleteComponentCommand)
#endif // COMPLETECOMPONENT_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef COMPONENTCOMPLETEDCOMMAND_H
#define COMPONENTCOMPLETEDCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
#include <QDataStream>
......@@ -57,5 +56,3 @@ QDebug operator <<(QDebug debug, const ComponentCompletedCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ComponentCompletedCommand)
#endif // COMPONENTCOMPLETEDCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/