Skip to content

Commit e029fd4

Browse files
committed
Use 'pragma once' in DXHook/Graphics/ServerBrowser
1 parent feaf573 commit e029fd4

14 files changed

+14
-56
lines changed

Client/core/DXHook/CDirect3DData.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CDIRECT3DDATA_H
13-
#define __CDIRECT3DDATA_H
12+
#pragma once
1413

1514
#include <d3d9.h>
1615
#include "CSingleton.h"
@@ -46,5 +45,3 @@ class CDirect3DData : public CSingleton<CDirect3DData>
4645
DWORD m_dwViewportWidth;
4746
DWORD m_dwViewportHeight;
4847
};
49-
50-
#endif

Client/core/DXHook/CDirect3DEvents9.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CDIRECT3DEVENTS9_H
13-
#define __CDIRECT3DEVENTS9_H
12+
#pragma once
1413

1514
#include <d3d9.h>
1615

@@ -52,5 +51,3 @@ class CDirect3DEvents9
5251
static IDirect3DIndexBuffer9* GetRealIndexBuffer(IDirect3DIndexBuffer9* pIndexBuffer);
5352
static IDirect3DBaseTexture9* GetRealTexture(IDirect3DBaseTexture9* pTexture);
5453
};
55-
56-
#endif

Client/core/DXHook/CDirect3DHookManager.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CDIRECT3DHOOKMANAGER_H
13-
#define __CDIRECT3DHOOKMANAGER_H
12+
#pragma once
1413

1514
#include "CDirect3DHook9.h"
1615
class CDirect3DHookManager
@@ -25,5 +24,3 @@ class CDirect3DHookManager
2524
private:
2625
CDirect3DHook9* m_pDirect3DHook9;
2726
};
28-
29-
#endif

Client/core/DXHook/CDirectInputHook8.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CDIRECTINPUTHOOK8_H
13-
#define __CDIRECTINPUTHOOK8_H
12+
#pragma once
1413

1514
typedef HRESULT(__stdcall* pDirectInputCreate)(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID* ppvOut, LPUNKNOWN punkOuter);
1615

@@ -31,5 +30,3 @@ class CDirectInputHook8 : public CSingleton<CDirectInputHook8>
3130
pDirectInputCreate m_pfnDirectInputCreate;
3231
bool m_bIsUnicodeInterface;
3332
};
34-
35-
#endif

Client/core/DXHook/CDirectInputHookManager.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CDIRECTINPUTHOOKMANAGER_H
13-
#define __CDIRECTINPUTHOOKMANAGER_H
12+
#pragma once
1413

1514
#include "CDirectInputHook8.h"
1615

@@ -26,5 +25,3 @@ class CDirectInputHookManager
2625
private:
2726
CDirectInputHook8* m_pDirectInputHook8;
2827
};
29-
30-
#endif

Client/core/DXHook/CProxyDirect3D9.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CPROXYDIRECT3D9_H
13-
#define __CPROXYDIRECT3D9_H
12+
#pragma once
1413

1514
#include <d3d9.h>
1615
#include "CProxyDirect3DDevice9.h"
@@ -51,5 +50,3 @@ class CProxyDirect3D9 : public IDirect3D9
5150
private:
5251
IDirect3D9* m_pDevice;
5352
};
54-
55-
#endif

Client/core/DXHook/CProxyDirect3DDevice9.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CPROXYDIRECT3DDEVICE9_H
13-
#define __CPROXYDIRECT3DDEVICE9_H
12+
#pragma once
1413

1514
#include <d3d9.h>
1615
#include "CDirect3DData.h"
@@ -553,5 +552,3 @@ interface CProxyDirect3DDevice9 : public IDirect3DDevice9
553552

554553
extern CProxyDirect3DDevice9* g_pProxyDevice;
555554
extern CProxyDirect3DDevice9::SD3DDeviceState* g_pDeviceState;
556-
557-
#endif

Client/core/DXHook/CProxyDirectInput8.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CPROXYDIRECTINPUT_H
13-
#define __CPROXYDIRECTINPUT_H
12+
#pragma once
1413

1514
#define DIRECTINPUT_VERSION 0x0800
1615
#include <dinput.h>
@@ -40,5 +39,3 @@ class CProxyDirectInput8 : public IDirectInput8A
4039
private:
4140
IDirectInput8A* m_pDevice;
4241
};
43-
44-
#endif

Client/core/DXHook/CProxyDirectInputDevice8.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CPROXYDIRECTINPUTDEVICE_H
13-
#define __CPROXYDIRECTINPUTDEVICE_H
12+
#pragma once
1413

1514
#define DIRECTINPUT_VERSION 0x0800
1615
#include <dinput.h>
@@ -59,5 +58,3 @@ class CProxyDirectInputDevice8 : public IDirectInputDevice8A
5958
IDirectInputDevice8A* m_pDevice;
6059
bool m_bDropDataIfInputGoesToGUI;
6160
};
62-
63-
#endif

Client/core/Graphics/CGraphics.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
class CGraphics;
1313

14-
#ifndef __CGRAPHICS_H
15-
#define __CGRAPHICS_H
14+
#pragma once
1615

1716
#include <core/CGraphicsInterface.h>
1817
#include <gui/CGUI.h>
@@ -334,5 +333,3 @@ class CGraphics : public CGraphicsInterface, public CSingleton<CGraphics>
334333
uint m_uiProgressAnimFrame;
335334
std::map<SString, SCustomScaleFontInfo> m_CustomScaleFontMap;
336335
};
337-
338-
#endif

0 commit comments

Comments
 (0)