Skip to content

Commit dd2616a

Browse files
committed
Remove some include guards
1 parent 038d860 commit dd2616a

25 files changed

+15
-111
lines changed

src/editors/ParticleEditor/noise.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
#ifndef noiseH
2-
#define noiseH
1+
#pragma once
32

43
float noise3(const Fvector& vec);
54
float fractalsum3(const Fvector& v, float freq, int octaves);
65
float turbulence3(const Fvector& v, float freq, int octaves);
7-
8-
#endif

src/utils/ETools/xrXRC.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//////////////////////////////////////////////////////////////////////
44

55
#pragma once
6-
#if !defined(AFX_XRXRC_H__9AA25268_621F_4FCA_BD75_AF2E9822B8E3__INCLUDED_)
7-
#define AFX_XRXRC_H__9AA25268_621F_4FCA_BD75_AF2E9822B8E3__INCLUDED_
86

97
#include "xrCDB/xrCDB.h"
108
#include "xrCore/_fbox.h"
@@ -76,5 +74,3 @@ class ENGINE_API xrXRC
7674
IC void r_clear() { CL.r_clear(); };
7775
};
7876
ENGINE_API extern xrXRC XRC;
79-
80-
#endif // !defined(AFX_XRXRC_H__9AA25268_621F_4FCA_BD75_AF2E9822B8E3__INCLUDED_)

src/xrCDB/Frustum.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
// Frustum.h: interface for the CFrustum class.
22
//
33
//////////////////////////////////////////////////////////////////////
4-
5-
#if !defined(AFX_FRUSTUM_H__E66ED755_F741_49CF_8B2A_404CCF7067F2__INCLUDED_)
6-
#define AFX_FRUSTUM_H__E66ED755_F741_49CF_8B2A_404CCF7067F2__INCLUDED_
4+
#pragma once
75

86
#include "xrCDB.h"
97

10-
//#pragma once
11-
12-
#include "xrCore/fixedvector.h"
8+
#include "xrCore/FixedVector.h"
139

1410
#pragma pack(push, 4)
1511

@@ -102,5 +98,3 @@ class XRCDB_API CFrustum
10298
}
10399
};
104100
#pragma pack(pop)
105-
106-
#endif // !defined(AFX_FRUSTUM_H__E66ED755_F741_49CF_8B2A_404CCF7067F2__INCLUDED_)

src/xrCDB/ISpatial.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#pragma once
2-
#ifndef XRENGINE_ISPATIAL_H_INCLUDED
3-
#define XRENGINE_ISPATIAL_H_INCLUDED
42

53
#include "xrCore/xrPool.h"
64
//#include "xr_collide_defs.h"
@@ -16,7 +14,7 @@
1614
0. Generic
1715
* O(1) insertion
1816
- radius completely determines "level"
19-
- position completely detemines "node"
17+
- position completely determines "node"
2018
* O(1) removal
2119
*
2220
1. Rendering
@@ -276,5 +274,3 @@ XRCDB_API extern ISpatial_DB* g_SpatialSpace;
276274
XRCDB_API extern ISpatial_DB* g_SpatialSpacePhysic;
277275

278276
#pragma pack(pop)
279-
280-
#endif // #ifndef XRENGINE_ISPATIAL_H_INCLUDED

src/xrCDB/Intersect.hpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
//---------------------------------------------------------------------------
21
#pragma once
3-
#ifndef intersectH
4-
#define intersectH
2+
53
#include "xrCore/_matrix33.h"
64
#include "xrCore/_obb.h"
75
#include "xrCore/_sphere.h"
@@ -916,7 +914,4 @@ IC bool TestRayOBB(const Fvector3& origin, const Fvector3& direction, const Fobb
916914

917915
return true;
918916
}
919-
//----------------------------------------------------------------------------
920-
};
921-
922-
#endif
917+
} // namespace CDB

src/xrCDB/xrCDB.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//#pragma once
2-
#ifndef XRCDB_H
3-
#define XRCDB_H
1+
#pragma once
42

53
#include "xrCore/Threading/Lock.hpp" // XXX: Remove from header. Put in .cpp.
64

@@ -229,7 +227,5 @@ class XRCDB_API CollectorPacked : public non_copyable
229227
void clear();
230228
};
231229
#pragma warning(pop)
232-
};
233-
230+
}
234231
#pragma pack(pop)
235-
#endif

src/xrCDB/xrXRC.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
//
33
//////////////////////////////////////////////////////////////////////
44

5-
#if !defined(AFX_XRXRC_H__9AA25268_621F_4FCA_BD75_AF2E9822B8E3__INCLUDED_)
6-
#define AFX_XRXRC_H__9AA25268_621F_4FCA_BD75_AF2E9822B8E3__INCLUDED_
7-
//#pragma once
5+
#pragma once
86

97
#include "xrCDB.h"
108
class IGameFont;
@@ -84,5 +82,3 @@ class XRCDB_API xrXRC
8482
xrXRC(const char* name = "<unknown>") : name(name) {}
8583
};
8684
XRCDB_API extern xrXRC XRC;
87-
88-
#endif // !defined(AFX_XRXRC_H__9AA25268_621F_4FCA_BD75_AF2E9822B8E3__INCLUDED_)

src/xrCDB/xr_area.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#ifndef __XR_AREA_H__
2-
#define __XR_AREA_H__
3-
1+
#pragma once
42
#include "xr_collide_defs.h"
53

64
// refs
@@ -88,5 +86,3 @@ class XRCDB_API CObjectSpace
8886
#endif
8987
void DumpStatistics(IGameFont& font, IPerformanceAlert* alert);
9088
};
91-
92-
#endif //__XR_AREA_H__

src/xrCDB/xr_collide_defs.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#pragma once
2-
#ifndef xr_collide_defsH
3-
#define xr_collide_defsH
42

53
#include "xrCDB.h"
64

@@ -192,4 +190,3 @@ class rq_results
192190
typedef BOOL rq_callback(rq_result& result, LPVOID user_data);
193191
typedef BOOL test_callback(const ray_defs& rd, IGameObject* object, LPVOID user_data);
194192
}
195-
#endif

src/xrParticles/noise.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#pragma once
2-
#ifndef noiseH
3-
#define noiseH
42

53
float noise3(const Fvector& vec);
64
float fractalsum3(const Fvector& v, float freq, int octaves);
75
float turbulence3(const Fvector& v, float freq, int octaves);
8-
9-
#endif

0 commit comments

Comments
 (0)