From 71827d21185c4f3d3fc5f069d7d3665cfba311df Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 6 Dec 2017 16:42:51 +0100 Subject: Change header guards to "#pragma once" Change-Id: I30c3f0b9870144e850f43a3a5634940e2542ecb2 Reviewed-by: Christian Kandeler --- app/perfattributes.h | 5 +---- app/perfdata.h | 5 +---- app/perfelfmap.h | 5 +---- app/perffeatures.h | 5 +---- app/perffilesection.h | 5 +---- app/perfheader.h | 5 +---- app/perfkallsyms.h | 6 +----- app/perfregisterinfo.h | 5 +---- app/perfstdin.h | 5 +---- app/perfsymboltable.h | 6 ++---- app/perftracingdata.h | 5 +---- app/perfunwind.h | 5 +---- 12 files changed, 13 insertions(+), 49 deletions(-) diff --git a/app/perfattributes.h b/app/perfattributes.h index 19c2f8f..ef02ce6 100644 --- a/app/perfattributes.h +++ b/app/perfattributes.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFATTRIBUTES_H -#define PERFATTRIBUTES_H +#pragma once #include "perffilesection.h" #include "perfheader.h" @@ -290,5 +289,3 @@ private: PerfEventAttributes m_globalAttributes; QHash m_attributes; }; - -#endif // PERFATTRIBUTES_H diff --git a/app/perfdata.h b/app/perfdata.h index b6c1861..0d44a9f 100644 --- a/app/perfdata.h +++ b/app/perfdata.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFDATA_H -#define PERFDATA_H +#pragma once #include "perfheader.h" #include "perfattributes.h" @@ -487,5 +486,3 @@ private: ReadStatus processEvents(QDataStream &stream); ReadStatus doRead(); }; - -#endif // PERFDATA_H diff --git a/app/perfelfmap.h b/app/perfelfmap.h index 47c6fe5..a9af9f9 100644 --- a/app/perfelfmap.h +++ b/app/perfelfmap.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFELFMAP_H -#define PERFELFMAP_H +#pragma once #include #include @@ -94,5 +93,3 @@ Q_DECLARE_TYPEINFO(PerfElfMap::ElfInfo, Q_MOVABLE_TYPE); QT_END_NAMESPACE QDebug operator<<(QDebug stream, const PerfElfMap::ElfInfo& info); - -#endif diff --git a/app/perffeatures.h b/app/perffeatures.h index e1563a2..de96850 100644 --- a/app/perffeatures.h +++ b/app/perffeatures.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFFEATURE_H -#define PERFFEATURE_H +#pragma once #include "perfheader.h" #include "perfattributes.h" @@ -203,5 +202,3 @@ private: PerfPmuMappings m_pmuMappings; PerfGroupDesc m_groupDesc; }; - -#endif // PERFFEATURE_H diff --git a/app/perffilesection.h b/app/perffilesection.h index 78b706f..e89e7bd 100644 --- a/app/perffilesection.h +++ b/app/perffilesection.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFFILESECTION_H -#define PERFFILESECTION_H +#pragma once #include @@ -32,5 +31,3 @@ struct PerfFileSection { }; QDataStream &operator>>(QDataStream &stream, PerfFileSection §ion); - -#endif // PERFFILESECTION_H diff --git a/app/perfheader.h b/app/perfheader.h index fdc01ec..1c65bbe 100644 --- a/app/perfheader.h +++ b/app/perfheader.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFHEADER_H -#define PERFHEADER_H +#pragma once #include "perffilesection.h" @@ -97,5 +96,3 @@ private: static const qint64 s_pipeHeaderSize = 16LL; static const qint64 s_perfHeaderSize = 104LL; }; - -#endif // PERFHEADER_H diff --git a/app/perfkallsyms.h b/app/perfkallsyms.h index efce043..9e26b42 100644 --- a/app/perfkallsyms.h +++ b/app/perfkallsyms.h @@ -17,8 +17,7 @@ ** ****************************************************************************/ -#ifndef PERFKALLSYMS_H -#define PERFKALLSYMS_H +#pragma once #include #include @@ -49,6 +48,3 @@ private: QVector m_entries; QString m_errorString; }; - -#endif // PERFKALLSYMS_H - diff --git a/app/perfregisterinfo.h b/app/perfregisterinfo.h index fd6a64e..5668426 100644 --- a/app/perfregisterinfo.h +++ b/app/perfregisterinfo.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFREGISTERINFO_H -#define PERFREGISTERINFO_H +#pragma once #include @@ -64,5 +63,3 @@ public: // default architecture for the system which was used for compilation static QByteArray defaultArchitecture(); }; - -#endif // PERFREGISTERINFO_H diff --git a/app/perfstdin.h b/app/perfstdin.h index e272b23..4b4d723 100644 --- a/app/perfstdin.h +++ b/app/perfstdin.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFSTDIN_H -#define PERFSTDIN_H +#pragma once #include @@ -34,5 +33,3 @@ protected: qint64 readData(char *data, qint64 maxlen) override; qint64 writeData(const char *data, qint64 len) override; }; - -#endif // PERFSTDIN_H diff --git a/app/perfsymboltable.h b/app/perfsymboltable.h index 80394ff..f846a4b 100644 --- a/app/perfsymboltable.h +++ b/app/perfsymboltable.h @@ -22,8 +22,8 @@ ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ****************************************************************************/ -#ifndef PERFSYMBOLTABLE_H -#define PERFSYMBOLTABLE_H + +#pragma once #include "perfdata.h" #include "perfunwind.h" @@ -114,5 +114,3 @@ QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(PerfSymbolTable::PerfMapSymbol, Q_MOVABLE_TYPE); Q_DECLARE_TYPEINFO(PerfSymbolTable::DieAndLocation, Q_MOVABLE_TYPE); QT_END_NAMESPACE - -#endif // PERFSYMBOLTABLE_H diff --git a/app/perftracingdata.h b/app/perftracingdata.h index 7d0f549..18dbb10 100644 --- a/app/perftracingdata.h +++ b/app/perftracingdata.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFTRACINGDATA_H -#define PERFTRACINGDATA_H +#pragma once #include #include @@ -104,5 +103,3 @@ private: }; QDataStream &operator>>(QDataStream &stream, PerfTracingData &record); - -#endif // PERFTRACINGDATA_H diff --git a/app/perfunwind.h b/app/perfunwind.h index a43bbcd..d381d8c 100644 --- a/app/perfunwind.h +++ b/app/perfunwind.h @@ -18,8 +18,7 @@ ** ****************************************************************************/ -#ifndef PERFUNWIND_H -#define PERFUNWIND_H +#pragma once #include "perfdata.h" #include "perfregisterinfo.h" @@ -303,5 +302,3 @@ private: uint qHash(const PerfUnwind::Location &location, uint seed = 0); bool operator==(const PerfUnwind::Location &a, const PerfUnwind::Location &b); - -#endif // PERFUNWIND_H -- cgit v1.2.3