Skip to content

Commit

Permalink
Add missing pragma once (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon authored Feb 21, 2024
1 parent 64626cd commit b013231
Show file tree
Hide file tree
Showing 19 changed files with 29 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/client/w3dassetmanager.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 "asciistring.h"
#include "assetmgr.h"
#include "mempoolobj.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
1 change: 1 addition & 0 deletions src/game/logic/object/objectcreationlist.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 "mempoolobj.h"
#include "namekeygenerator.h"
Expand Down
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/tools/w3dviewer/colorutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#pragma once

#include "w3dafx.h"

void DrawSunkenRect(BYTE *bits, RECT *rect, int stride);
void DrawRaisedRect(BYTE *bits, RECT *rect, int stride);
void DrawOutlinedRect(BYTE *bits, RECT *rect, int color, int stride);
2 changes: 2 additions & 0 deletions src/tools/w3dviewer/emitterlinegroupproppage.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 "w3dafx.h"
#include "part_emt.h"

Expand Down
2 changes: 2 additions & 0 deletions src/tools/w3dviewer/emitterlineproppage.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 "w3dafx.h"

class EmitterInstanceList;
Expand Down
2 changes: 2 additions & 0 deletions src/tools/w3dviewer/emitterparticleproppage.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 "w3dafx.h"

class EmitterInstanceList;
Expand Down
2 changes: 2 additions & 0 deletions src/tools/w3dviewer/emitterphysicsproppage.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 "w3dafx.h"
#include "vector3.h"

Expand Down
2 changes: 2 additions & 0 deletions src/tools/w3dviewer/emitterrotationproppage.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 "w3dafx.h"
#include "part_emt.h"

Expand Down
2 changes: 2 additions & 0 deletions src/tools/w3dviewer/emittersizeproppage.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 "w3dafx.h"
#include "part_emt.h"

Expand Down
2 changes: 2 additions & 0 deletions src/tools/w3dviewer/emitteruserproppage.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 "w3dafx.h"

class EmitterInstanceList;
Expand Down
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
2 changes: 2 additions & 0 deletions src/w3d/renderer/line3d.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 "rendobj.h"
#include "shader.h"
Expand Down

0 comments on commit b013231

Please sign in to comment.