Skip to content

Commit 921151d

Browse files
authoredAug 17, 2017
C++ modernize: Pragma once (#6264)
* Migrate cpp headers to pragma once
1 parent c738d1e commit 921151d

File tree

236 files changed

+288
-1028
lines changed

Some content is hidden

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

236 files changed

+288
-1028
lines changed
 

Diff for: ‎src/activeobject.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1717
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1818
*/
1919

20-
#ifndef ACTIVEOBJECT_HEADER
21-
#define ACTIVEOBJECT_HEADER
20+
#pragma once
2221

2322
#include "irr_aabb3d.h"
2423
#include <string>
@@ -102,6 +101,3 @@ class ActiveObject
102101
protected:
103102
u16 m_id; // 0 is invalid, "no id"
104103
};
105-
106-
#endif
107-

Diff for: ‎src/ban.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1717
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1818
*/
1919

20-
#ifndef BAN_HEADER
21-
#define BAN_HEADER
20+
#pragma once
2221

2322
#include "util/string.h"
2423
#include "threading/thread.h"
@@ -48,5 +47,3 @@ class BanManager
4847
StringMap m_ips;
4948
bool m_modified = false;
5049
};
51-
52-
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.