Skip to content

Commit a517c51

Browse files
committed
Remove include guards from rest of Server
1 parent aecf7bd commit a517c51

File tree

185 files changed

+188
-608
lines changed

Some content is hidden

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

185 files changed

+188
-608
lines changed

Server/launcher/CDynamicLibrary.h

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

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

1514
#ifdef WIN32
1615
#include <windows.h>
@@ -37,5 +36,3 @@ class CDynamicLibrary
3736
void* m_hModule;
3837
#endif
3938
};
40-
41-
#endif

Server/mods/deathmatch/CServer.h

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

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

1514
#include <core/CServerBase.h>
1615

@@ -37,5 +36,3 @@ class CServer : public CServerBase
3736
CServerInterface* m_pServerInterface;
3837
class CGame* m_pGame;
3938
};
40-
41-
#endif

Server/mods/deathmatch/logic/ASE.h

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

1212
class ASE;
1313

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

1716
#ifdef WIN32
1817
#include <conio.h>
@@ -154,5 +153,3 @@ class CASERule
154153
std::string m_strKey;
155154
std::string m_strValue;
156155
};
157-
158-
#endif

Server/mods/deathmatch/logic/CAccessControlList.h

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

1212
class CAccessControlList;
1313

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

1716
#include <list>
1817
#include "CAccessControlListRight.h"
@@ -49,5 +48,3 @@ class CAccessControlList
4948
class CAccessControlListManager* m_pACLManager;
5049
uint m_uiScriptID;
5150
};
52-
53-
#endif

Server/mods/deathmatch/logic/CAccessControlListGroup.h

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

1212
class CAccessControlListGroup;
1313

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

1716
#include "../Config.h"
1817
#include <xml/CXMLNode.h>
@@ -91,5 +90,3 @@ class CAccessControlListGroup
9190
ObjectMap m_ObjectsById;
9291
uint m_uiScriptID;
9392
};
94-
95-
#endif

Server/mods/deathmatch/logic/CAccessControlListManager.h

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

1212
class CAccessControlListManager;
1313

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

1716
#include <list>
1817
#include "CAccessControlListRight.h"
@@ -90,5 +89,3 @@ class CAccessControlListManager : public CXMLConfig
9089
CElapsedTime m_AutoSaveTimer;
9190
uint m_uiGlobalRevision;
9291
};
93-
94-
#endif

Server/mods/deathmatch/logic/CAccessControlListRight.h

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

1212
class CAccessControlListRight;
1313

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

1716
#define MAX_ACL_RIGHT_NAME_LENGTH 256
1817

@@ -57,5 +56,3 @@ class CAccessControlListRight
5756
class CAccessControlListManager* m_pACLManager;
5857
std::map<SString, SString> m_ExtraAttributeMap;
5958
};
60-
61-
#endif

Server/mods/deathmatch/logic/CAccount.h

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

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

1514
#include <list>
1615
#include <string>
@@ -158,4 +157,3 @@ class CAccountData
158157
int m_iType;
159158
};
160159

161-
#endif

Server/mods/deathmatch/logic/CAccountManager.h

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

1212
class CAccountManager;
1313

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

1716
#include "CAccount.h"
1817
typedef uint SDbConnectionId;
@@ -184,5 +183,3 @@ class CAccountManager
184183
int m_iAccounts;
185184
SString m_strDbPathFilename;
186185
};
187-
188-
#endif

Server/mods/deathmatch/logic/CBan.h

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

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

1514
#include "CCommon.h"
1615
#include <string>
@@ -97,4 +96,3 @@ class CBan
9796
bool m_bBeingDeleted;
9897
};
9998

100-
#endif

0 commit comments

Comments
 (0)