Commit 39a38d56 authored by hjk's avatar hjk
Browse files

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 @@
**
****************************************************************************/
#ifndef CREATEINSTANCESCOMMAND_H
#define CREATEINSTANCESCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -55,5 +54,3 @@ QDebug operator <<(QDebug debug, const CreateInstancesCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::CreateInstancesCommand)
#endif // CREATEINSTANCESCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef CREATESCENECOMMAND_H
#define CREATESCENECOMMAND_H
#pragma once
#include <qmetatype.h>
#include <QUrl>
......@@ -81,5 +80,3 @@ QDebug operator <<(QDebug debug, const CreateSceneCommand &command);
}
Q_DECLARE_METATYPE(QmlDesigner::CreateSceneCommand)
#endif // CREATESCENECOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef QMLDESIGNER_DEBUGOUTPUTCOMMAND_H
#define QMLDESIGNER_DEBUGOUTPUTCOMMAND_H
#pragma once
#include <QMetaType>
#include <QString>
......@@ -68,5 +67,3 @@ QDebug operator <<(QDebug debug, const DebugOutputCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::DebugOutputCommand)
#endif // QMLDESIGNER_DEBUGOUTPUTCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef QMLDESIGNER_ENDPUPPETCOMMAND_H
#define QMLDESIGNER_ENDPUPPETCOMMAND_H
#pragma once
#include <qmetatype.h>
......@@ -44,5 +43,3 @@ QDebug operator <<(QDebug debug, const EndPuppetCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::EndPuppetCommand)
#endif // QMLDESIGNER_ENDPUPPETCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef INFORMATIONCHANGEDCOMMAND_H
#define INFORMATIONCHANGEDCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -59,5 +58,3 @@ QDebug operator <<(QDebug debug, const InformationChangedCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::InformationChangedCommand)
#endif // INFORMATIONCHANGEDCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef PIXMAPCHANGEDCOMMAND_H
#define PIXMAPCHANGEDCOMMAND_H
#pragma once
#include <QMetaType>
#include "imagecontainer.h"
......@@ -57,5 +56,3 @@ QDebug operator <<(QDebug debug, const PixmapChangedCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::PixmapChangedCommand)
#endif // PIXMAPCHANGEDCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef PUPPETALIVECOMMAND_H
#define PUPPETALIVECOMMAND_H
#pragma once
#include <QMetaType>
#include <QDebug>
......@@ -48,5 +47,3 @@ QDebug operator <<(QDebug debug, const PuppetAliveCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::PuppetAliveCommand)
#endif // PUPPETALIVECOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef REMOVEINSTANCESCOMMAND_H
#define REMOVEINSTANCESCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -57,5 +56,3 @@ QDebug operator <<(QDebug debug, const RemoveInstancesCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::RemoveInstancesCommand)
#endif // REMOVEINSTANCESCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef REMOVEPROPERTIESCOMMAND_H
#define REMOVEPROPERTIESCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -56,5 +55,3 @@ QDebug operator <<(QDebug debug, const RemovePropertiesCommand &command);
}
Q_DECLARE_METATYPE(QmlDesigner::RemovePropertiesCommand)
#endif // REMOVEPROPERTIESCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef QMLDESIGNER_REMOVESHAREDMEMORYCOMMAND_H
#define QMLDESIGNER_REMOVESHAREDMEMORYCOMMAND_H
#pragma once
#include <QMetaType>
#include <QString>
......@@ -57,5 +56,3 @@ QDebug operator <<(QDebug debug, const RemoveSharedMemoryCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::RemoveSharedMemoryCommand)
#endif // QMLDESIGNER_REMOVESHAREDMEMORYCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef REPARENTINSTANCESCOMMAND_H
#define REPARENTINSTANCESCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -56,5 +55,3 @@ QDebug operator <<(QDebug debug, const ReparentInstancesCommand &command);
} //
Q_DECLARE_METATYPE(QmlDesigner::ReparentInstancesCommand)
#endif // REPARENTINSTANCESCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef STATEPREVIEWIMAGECHANGEDCOMMAND_H
#define STATEPREVIEWIMAGECHANGEDCOMMAND_H
#pragma once
#include <QMetaType>
......@@ -58,5 +57,3 @@ QDebug operator <<(QDebug debug, const StatePreviewImageChangedCommand &command)
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::StatePreviewImageChangedCommand)
#endif // STATEPREVIEWIMAGECHANGEDCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef SYNCHRONIZECOMMAND_H
#define SYNCHRONIZECOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -57,5 +56,3 @@ QDebug operator <<(QDebug debug, const SynchronizeCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::SynchronizeCommand)
#endif // SYNCHRONIZECOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef QMLDESIGNER_TOKENCOMMAND_H
#define QMLDESIGNER_TOKENCOMMAND_H
#pragma once
#include <QMetaType>
......@@ -64,6 +63,3 @@ QDebug operator <<(QDebug debug, const TokenCommand &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::TokenCommand)
#endif // QMLDESIGNER_TOKENCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef VALUESCHANGEDCOMMAND_H
#define VALUESCHANGEDCOMMAND_H
#pragma once
#include <QMetaType>
#include <QVector>
......@@ -63,6 +62,3 @@ QDebug operator <<(QDebug debug, const ValuesChangedCommand &instance);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ValuesChangedCommand)
#endif // VALUESCHANGEDCOMMAND_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef ADDIMPORTCONTAINER_H
#define ADDIMPORTCONTAINER_H
#pragma once
#include <QMetaType>
#include <QUrl>
......@@ -62,5 +61,3 @@ QDebug operator <<(QDebug debug, const AddImportContainer &container);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::AddImportContainer)
#endif // ADDIMPORTCONTAINER_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef IDCONTAINER_H
#define IDCONTAINER_H
#pragma once
#include <QDataStream>
#include <qmetatype.h>
......@@ -57,5 +56,3 @@ QDebug operator <<(QDebug debug, const IdContainer &container);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::IdContainer)
#endif // IDCONTAINER_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef IMAGECONTAINER_H
#define IMAGECONTAINER_H
#pragma once
#include <QMetaType>
#include <QImage>
......@@ -65,5 +64,3 @@ QDebug operator <<(QDebug debug, const ImageContainer &container);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::ImageContainer)
#endif // IMAGECONTAINER_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef INFORMATIONCONTAINER_H
#define INFORMATIONCONTAINER_H
#pragma once
#include <QDataStream>
#include <QMetaType>
......@@ -74,5 +73,3 @@ QDebug operator <<(QDebug debug, const InformationContainer &container);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::InformationContainer)
#endif // INFORMATIONCONTAINER_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef INSTANCECONTAINER_H
#define INSTANCECONTAINER_H
#pragma once
#include <qmetatype.h>
#include <QString>
......@@ -83,4 +82,3 @@ QDebug operator <<(QDebug debug, const InstanceContainer &command);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::InstanceContainer)
#endif // INSTANCECONTAINER_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef PROPERTYABSTRACTCONTAINER_H
#define PROPERTYABSTRACTCONTAINER_H
#pragma once
#include <QDataStream>
#include <qmetatype.h>
......@@ -65,4 +64,3 @@ QDebug operator <<(QDebug debug, const PropertyAbstractContainer &container);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::PropertyAbstractContainer)
#endif // PROPERTYABSTRACTCONTAINER_H
......@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef PROPERTYBINDINGCONTAINER_H
#define PROPERTYBINDINGCONTAINER_H
#pragma once
#include <QDataStream>
#include <qmetatype.h>
......@@ -63,4 +62,3 @@ QDebug operator <<(QDebug debug, const PropertyBindingContainer &container);
} // namespace QmlDesigner
Q_DECLARE_METATYPE(QmlDesigner::PropertyBindingContainer)
#endif // PROPERTYBINDINGCONTAINER_H