Skip to content

Commit 86fb1c1

Browse files
author
Bart Roossien
committed
refactor: replace include guards with pragma once
1 parent 310a893 commit 86fb1c1

File tree

271 files changed

+516
-1810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+516
-1810
lines changed

Core/GameEngine/Include/Common/CRCDebug.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
// Author: Matthew D. Campbell, June 2002
2828

2929
// no #pragma once - we want to be able to conditionally define NO_DEBUG_CRC in indiv .cpp files
30-
31-
#ifndef __CRCDEBUG_H__
32-
#define __CRCDEBUG_H__
33-
30+
#pragma once
3431
#include "Common/Debug.h"
3532

3633
#ifndef NO_DEBUG_CRC
@@ -129,5 +126,3 @@
129126
extern Int NET_CRC_INTERVAL;
130127
extern Int REPLAY_CRC_INTERVAL;
131128
extern Bool TheDebugIgnoreSyncErrors;
132-
133-
#endif // __CRCDEBUG_H__

Core/GameEngine/Include/Common/simpleplayer.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
** along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
20-
#ifndef SIMPLEPLAYER_H
21-
#define SIMPLEPLAYER_H
22-
19+
#pragma once
2320
#include "wmsdk.h"
2421

2522
//
@@ -119,5 +116,3 @@ class CSimplePlayer : public IWMReaderCallback
119116
LPWSTR m_pszUrl;
120117

121118
};
122-
123-
#endif // SIMPLEPLAYER_H

Core/GameEngine/Include/Common/urllaunch.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616
** along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
20-
#ifndef URLLAUNCH_H
21-
#define URLLAUNCH_H
22-
19+
#pragma once
2320
HRESULT MakeEscapedURL( LPWSTR pszInURL, LPWSTR *ppszOutURL );
2421

2522
HRESULT LaunchURL( LPCWSTR pszURL );
26-
27-
#endif // URLLAUNCH_H

Core/Libraries/Source/Compression/LZHCompress/NoxCompress.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
// Compress/Decompression header.
2121
// Author: Jeff Brown, January 1999
2222

23-
24-
#ifndef __compress_h
25-
#define __compress_h
26-
23+
#pragma once
2724
#define MAP_EXTENSION ".map"
2825
#define LZH_EXTENSION ".nxz"
2926
#define RUL_EXTENSION ".rul"
@@ -36,5 +33,3 @@ UnsignedInt CalcNewSize (UnsignedInt rawSize);
3633

3734
Bool DecompressMemory (void *inBufferVoid, Int inSize, void *outBufferVoid, Int& outSize);
3835
Bool CompressMemory (void *inBufferVoid, Int inSize, void *outBufferVoid, Int& outSize);
39-
40-
#endif // __compress_h

Core/Libraries/Source/WWVegas/WW3D2/dx8webbrowser.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
//******************************************************************************************
3030
// $Header: $
3131
//******************************************************************************************
32-
33-
#ifndef DX8_WEBBROWSER_H
34-
#define DX8_WEBBROWSER_H
35-
32+
#pragma once
3633
#include <windows.h>
3734
#include "d3d8.h"
3835

@@ -89,5 +86,3 @@ class DX8WebBrowser
8986
};
9087

9188
#endif
92-
93-
#endif

Core/Libraries/Source/WWVegas/WW3D2/projector.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636
*---------------------------------------------------------------------------------------------*
3737
* Functions: *
3838
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
39-
40-
#ifndef PROJECTOR_H
41-
#define PROJECTOR_H
42-
39+
#pragma once
4340
#include "always.h"
4441
#include "matrix3d.h"
4542
#include "matrix4.h"
@@ -85,8 +82,3 @@ class ProjectorClass
8582

8683
MatrixMapperClass * Mapper;
8784
};
88-
89-
90-
#endif
91-
92-

Core/Libraries/Source/WWVegas/WW3D2/renderobjectrecycler.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636
* Functions: *
3737
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
3838

39-
40-
#ifndef RENDEROBJECTRECYCLER_H
41-
#define RENDEROBJECTRECYCLER_H
42-
39+
#pragma once
4340
#include "always.h"
4441
#include "robjlist.h"
4542

@@ -77,8 +74,3 @@ class RenderObjectRecyclerClass
7774
RefRenderObjListClass InactiveModels;
7875

7976
};
80-
81-
82-
83-
84-
#endif //RENDEROBJECTRECYCLER_H

Core/Libraries/Source/WWVegas/WW3D2/seglinerenderer.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
*---------------------------------------------------------------------------------------------*
3636
* Functions: *
3737
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
38-
39-
#ifndef SEGLINERENDERER_H
40-
#define SEGLINERENDERER_H
41-
38+
#pragma once
4239
#include "always.h"
4340
#include "shader.h"
4441
#include "texture.h"
@@ -206,7 +203,3 @@ inline void SegLineRendererClass::Set_UV_Offset_Rate(const Vector2 &rate)
206203
{
207204
UVOffsetDeltaPerMS = rate * 0.001f;
208205
}
209-
210-
211-
#endif //SEGLINERENDERER_H
212-

Core/Libraries/Source/WWVegas/WW3D2/soundlibrarybridge.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
*---------------------------------------------------------------------------------------------
3434
* Functions:
3535
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
36-
#ifndef SOUNDLIBRARYBRIDGE_H
37-
#define SOUNDLIBRARYBRIDGE_H
38-
36+
#pragma once
3937
// Forward declarations.
4038
class Matrix3D;
4139

@@ -45,5 +43,3 @@ class SoundLibraryBridgeClass {
4543
virtual void Play_2D_Audio(const char * name) = 0;
4644
virtual void Stop_Playing_Audio(const char * name) = 0;
4745
};
48-
49-
#endif //SOUNDLIBRARYBRIDGE_H

Core/Libraries/Source/WWVegas/WW3D2/streakRender.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
*---------------------------------------------------------------------------------------------*
3636
* Functions: *
3737
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
38-
39-
#ifndef STREAKRENDER_H
40-
#define STREAKRENDER_H
41-
38+
#pragma once
4239
#include "always.h"
4340
#include "shader.h"
4441
#include "texture.h"
@@ -222,6 +219,3 @@ inline void StreakRendererClass::Reset_Line(void)
222219
{
223220
// Empty
224221
}
225-
226-
#endif //STREAKRENDER_H
227-

0 commit comments

Comments
 (0)