From f7088f69ab7406ea9fefa853fa7ce11f914e88cf Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Fri, 7 Apr 2017 08:50:17 +0200 Subject: Clang-format: fix some header files and remove them from whitelist --- src/script/lua_api/l_storage.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/script/lua_api/l_storage.h') diff --git a/src/script/lua_api/l_storage.h b/src/script/lua_api/l_storage.h index fde2828ad..e09b8b391 100644 --- a/src/script/lua_api/l_storage.h +++ b/src/script/lua_api/l_storage.h @@ -21,21 +21,21 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef __L_STORAGE_H__ #define __L_STORAGE_H__ -#include "lua_api/l_base.h" #include "l_metadata.h" +#include "lua_api/l_base.h" class ModMetadata; -class ModApiStorage: public ModApiBase +class ModApiStorage : public ModApiBase { protected: static int l_get_mod_storage(lua_State *L); + public: static void Initialize(lua_State *L, int top); - }; -class StorageRef: public MetaDataRef +class StorageRef : public MetaDataRef { private: ModMetadata *m_object; @@ -43,11 +43,12 @@ private: static const char className[]; static const luaL_reg methods[]; - virtual Metadata* getmeta(bool auto_create); + virtual Metadata *getmeta(bool auto_create); virtual void clearMeta(); // garbage collector static int gc_object(lua_State *L); + public: StorageRef(ModMetadata *object); ~StorageRef() {} @@ -56,7 +57,7 @@ public: static void create(lua_State *L, ModMetadata *object); static StorageRef *checkobject(lua_State *L, int narg); - static ModMetadata* getobject(StorageRef *ref); + static ModMetadata *getobject(StorageRef *ref); }; #endif /* __L_STORAGE_H__ */ -- cgit v1.2.3