From 51f85a87a4f707f865097b356e75d45e95b30992 Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Sat, 17 Feb 2024 11:01:38 +0100 Subject: [PATCH] Add missing pragma once --- src/game/client/draw/tintenvelope.h | 1 + src/game/client/gui/challengegenerals.h | 1 + src/game/common/mapobject.h | 2 ++ src/game/common/rts/productionprerequisite.h | 5 ----- src/game/common/thing/thingtemplate.h | 5 ----- src/game/logic/object/armortemplateset.h | 5 ----- src/game/logic/object/weapontemplateset.h | 5 ----- src/w3d/lib/slist.h | 3 +++ 8 files changed, 7 insertions(+), 20 deletions(-) diff --git a/src/game/client/draw/tintenvelope.h b/src/game/client/draw/tintenvelope.h index c9b5fb23d..2e09dd5f4 100644 --- a/src/game/client/draw/tintenvelope.h +++ b/src/game/client/draw/tintenvelope.h @@ -12,6 +12,7 @@ * A full copy of the GNU General Public License can be found in * LICENSE */ +#pragma once #include "always.h" #include "mempoolobj.h" diff --git a/src/game/client/gui/challengegenerals.h b/src/game/client/gui/challengegenerals.h index de2626fe6..17f319f2a 100644 --- a/src/game/client/gui/challengegenerals.h +++ b/src/game/client/gui/challengegenerals.h @@ -12,6 +12,7 @@ * A full copy of the GNU General Public License can be found in * LICENSE */ +#pragma once #include "always.h" #include "asciistring.h" diff --git a/src/game/common/mapobject.h b/src/game/common/mapobject.h index 0007d07ba..9046b5dd8 100644 --- a/src/game/common/mapobject.h +++ b/src/game/common/mapobject.h @@ -12,6 +12,8 @@ * A full copy of the GNU General Public License can be found in * LICENSE */ +#pragma once + #include "always.h" #include "asciistring.h" #include "coord.h" diff --git a/src/game/common/rts/productionprerequisite.h b/src/game/common/rts/productionprerequisite.h index 7d0fa8628..4a67f3a38 100644 --- a/src/game/common/rts/productionprerequisite.h +++ b/src/game/common/rts/productionprerequisite.h @@ -14,9 +14,6 @@ */ #pragma once -#ifndef PRODUCTIONPREREQUISITE_H -#define PRODUCTIONPREREQUISITE_H - #include "always.h" #include "asciistring.h" #include "science.h" @@ -58,5 +55,3 @@ class ProductionPrerequisite std::vector m_prereqUnit; std::vector m_prereqScience; }; - -#endif // PRODUCTIONPREREQUISITE_H diff --git a/src/game/common/thing/thingtemplate.h b/src/game/common/thing/thingtemplate.h index f226cb610..d2a01a4bb 100644 --- a/src/game/common/thing/thingtemplate.h +++ b/src/game/common/thing/thingtemplate.h @@ -14,9 +14,6 @@ */ #pragma once -#ifndef THINGTEMPLATE_H -#define THINGTEMPLATE_H - #include "always.h" #include "armortemplateset.h" #include "asciistring.h" @@ -421,5 +418,3 @@ class ThingTemplate : public Overridable static const FieldParse s_objectFieldParseTable[]; static const FieldParse s_objectReskinFieldParseTable[]; }; - -#endif // THINGTEMPLATE_H diff --git a/src/game/logic/object/armortemplateset.h b/src/game/logic/object/armortemplateset.h index f54995a96..ec556bfad 100644 --- a/src/game/logic/object/armortemplateset.h +++ b/src/game/logic/object/armortemplateset.h @@ -14,9 +14,6 @@ */ #pragma once -#ifndef ARMORTEMPLATESET_H -#define ARMORTEMPLATESET_H - #include "always.h" #include "bitflags.h" #include "ini.h" @@ -54,5 +51,3 @@ class ArmorTemplateSet ArmorTemplate *m_template; DamageFX *m_fx; }; - -#endif // ARMORTEMPLATESET_H diff --git a/src/game/logic/object/weapontemplateset.h b/src/game/logic/object/weapontemplateset.h index 30b5d153f..ab9ef0553 100644 --- a/src/game/logic/object/weapontemplateset.h +++ b/src/game/logic/object/weapontemplateset.h @@ -14,9 +14,6 @@ */ #pragma once -#ifndef WEAPONTEMPLATESET_H -#define WEAPONTEMPLATESET_H - #include "always.h" #include "bitflags.h" #include "gametype.h" @@ -82,5 +79,3 @@ class WeaponTemplateSet bool m_shareWeaponReloadTime; bool m_weaponLockSharedAcrossSets; }; - -#endif // WEAPONTEMPLATESET_H diff --git a/src/w3d/lib/slist.h b/src/w3d/lib/slist.h index 2ba4fa430..9b174d3ef 100644 --- a/src/w3d/lib/slist.h +++ b/src/w3d/lib/slist.h @@ -12,8 +12,11 @@ * A full copy of the GNU General Public License can be found in * LICENSE */ +#pragma once + #include "always.h" #include "autopool.h" + template class SList; class GenericSLNode : public AutoPoolClass