From ab128e03ff555a8fc292352b0b21fc1075a4c008 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sat, 10 Jun 2017 13:49:15 +0200 Subject: C++11 patchset 6: forbid object copy using assigment/copy function deleters (#5945) C++11 implement function deleting, it's generally used to prevent some object copy In script API use this function removal on ScriptApiBase instead of ScriptApiClient/Server/MainMenu, this affect all ScriptApis Move DISABLE_CLASS_COPY with constructor, the deleted function permit to replace function in its original place --- src/script/scripting_client.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/script/scripting_client.h') diff --git a/src/script/scripting_client.h b/src/script/scripting_client.h index c13fde607..822bff773 100644 --- a/src/script/scripting_client.h +++ b/src/script/scripting_client.h @@ -24,7 +24,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "cpp_api/s_base.h" #include "cpp_api/s_client.h" #include "cpp_api/s_security.h" -#include "util/basic_macros.h" class Client; class LocalPlayer; @@ -41,6 +40,5 @@ public: private: virtual void InitializeModApi(lua_State *L, int top); - DISABLE_CLASS_COPY(ClientScripting); }; #endif -- cgit v1.2.3