Skip to content

Commit

Permalink
Add missing pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Feb 17, 2024
1 parent 64626cd commit 51f85a8
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 20 deletions.
1 change: 1 addition & 0 deletions src/game/client/draw/tintenvelope.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/gui/challengegenerals.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/game/common/mapobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 0 additions & 5 deletions src/game/common/rts/productionprerequisite.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
*/
#pragma once

#ifndef PRODUCTIONPREREQUISITE_H
#define PRODUCTIONPREREQUISITE_H

#include "always.h"
#include "asciistring.h"
#include "science.h"
Expand Down Expand Up @@ -58,5 +55,3 @@ class ProductionPrerequisite
std::vector<PrereqUnitRec> m_prereqUnit;
std::vector<ScienceType> m_prereqScience;
};

#endif // PRODUCTIONPREREQUISITE_H
5 changes: 0 additions & 5 deletions src/game/common/thing/thingtemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
*/
#pragma once

#ifndef THINGTEMPLATE_H
#define THINGTEMPLATE_H

#include "always.h"
#include "armortemplateset.h"
#include "asciistring.h"
Expand Down Expand Up @@ -421,5 +418,3 @@ class ThingTemplate : public Overridable
static const FieldParse s_objectFieldParseTable[];
static const FieldParse s_objectReskinFieldParseTable[];
};

#endif // THINGTEMPLATE_H
5 changes: 0 additions & 5 deletions src/game/logic/object/armortemplateset.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
*/
#pragma once

#ifndef ARMORTEMPLATESET_H
#define ARMORTEMPLATESET_H

#include "always.h"
#include "bitflags.h"
#include "ini.h"
Expand Down Expand Up @@ -54,5 +51,3 @@ class ArmorTemplateSet
ArmorTemplate *m_template;
DamageFX *m_fx;
};

#endif // ARMORTEMPLATESET_H
5 changes: 0 additions & 5 deletions src/game/logic/object/weapontemplateset.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
*/
#pragma once

#ifndef WEAPONTEMPLATESET_H
#define WEAPONTEMPLATESET_H

#include "always.h"
#include "bitflags.h"
#include "gametype.h"
Expand Down Expand Up @@ -82,5 +79,3 @@ class WeaponTemplateSet
bool m_shareWeaponReloadTime;
bool m_weaponLockSharedAcrossSets;
};

#endif // WEAPONTEMPLATESET_H
3 changes: 3 additions & 0 deletions src/w3d/lib/slist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename T> class SList;

class GenericSLNode : public AutoPoolClass<GenericSLNode, 256>
Expand Down

0 comments on commit 51f85a8

Please sign in to comment.