From dec2241e09309cd23d2dd3a7436b8d4e951b32ea Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 19 Jan 2021 17:17:18 +1100 Subject: [PATCH] How were these include guards not caught? --- src/ai/lua/aspect_advancements.hpp | 5 +---- src/ai/lua/core.hpp | 5 +---- src/ai/lua/engine_lua.hpp | 5 +---- src/ai/lua/lua_object.hpp | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/ai/lua/aspect_advancements.hpp b/src/ai/lua/aspect_advancements.hpp index f9ce90a71737..872d8343aa21 100644 --- a/src/ai/lua/aspect_advancements.hpp +++ b/src/ai/lua/aspect_advancements.hpp @@ -12,8 +12,7 @@ See the COPYING file for more details. */ -#ifndef UNIT_ADVANCEMENT_ACPECT_H_INCLUDED -#define UNIT_ADVANCEMENT_ACPECT_H_INCLUDED +#pragma once #include #include @@ -40,5 +39,3 @@ class unit_advancements_aspect int ref_; }; } - -#endif diff --git a/src/ai/lua/core.hpp b/src/ai/lua/core.hpp index cea37182e576..fbb3176ae567 100644 --- a/src/ai/lua/core.hpp +++ b/src/ai/lua/core.hpp @@ -12,8 +12,7 @@ See the COPYING file for more details. */ -#ifndef AI_LUA_CORE_HPP -#define AI_LUA_CORE_HPP +#pragma once #include @@ -84,5 +83,3 @@ class lua_ai_action_handler }; }//of namespace ai - -#endif diff --git a/src/ai/lua/engine_lua.hpp b/src/ai/lua/engine_lua.hpp index c3c2f3043b20..960986114260 100644 --- a/src/ai/lua/engine_lua.hpp +++ b/src/ai/lua/engine_lua.hpp @@ -17,8 +17,7 @@ * @file */ -#ifndef AI_COMPOSITE_ENGINE_LUA_HPP_INCLUDED -#define AI_COMPOSITE_ENGINE_LUA_HPP_INCLUDED +#pragma once #include "ai/composite/engine.hpp" @@ -91,5 +90,3 @@ class engine_lua : public engine { }; } //end of namespace ai - -#endif diff --git a/src/ai/lua/lua_object.hpp b/src/ai/lua/lua_object.hpp index c028b14ae649..c1804d82c1c5 100644 --- a/src/ai/lua/lua_object.hpp +++ b/src/ai/lua/lua_object.hpp @@ -17,8 +17,7 @@ * Lua object(value) wrapper implementation */ -#ifndef LUA_OBJECT_HPP_INCLUDED -#define LUA_OBJECT_HPP_INCLUDED +#pragma once #include "config.hpp" #include "lua/lua.h" @@ -314,5 +313,3 @@ struct aspect_attacks_lua_filter; template <> std::shared_ptr lua_object::to_type(lua_State *L, int n); } // end of namespace ai - -#endif