Don't permit to copy Scripting classes (Client,Server,Mainmenu)
authorLoïc Blot <loic.blot@unix-experience.fr>
Thu, 27 Apr 2017 09:52:44 +0000 (11:52 +0200)
committerLoïc Blot <loic.blot@unix-experience.fr>
Thu, 27 Apr 2017 09:52:44 +0000 (11:52 +0200)
src/script/scripting_client.h
src/script/scripting_mainmenu.h
src/script/scripting_server.h

index df94e8b7187a746611461e50ff42cfcda86dae0c..b3451e4097f108768e3704245c052873415c1b67 100644 (file)
@@ -24,6 +24,7 @@ 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;
@@ -38,5 +39,6 @@ public:
 
 private:
        virtual void InitializeModApi(lua_State *L, int top);
+       DISABLE_CLASS_COPY(ClientScripting);
 };
 #endif
index a1385ba9cb6d9807645abc5c040c5f39ca1ca2d2..9aacd55d64659496e1a688d5b78456d7b33c80e1 100644 (file)
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "cpp_api/s_base.h"
 #include "cpp_api/s_mainmenu.h"
 #include "cpp_api/s_async.h"
+#include "util/basic_macros.h"
 
 /*****************************************************************************/
 /* Scripting <-> Main Menu Interface                                         */
@@ -45,6 +46,7 @@ private:
        void initializeModApi(lua_State *L, int top);
 
        AsyncEngine asyncEngine;
+       DISABLE_CLASS_COPY(MainMenuScripting);
 };
 
 
index fd97ea40b7e54b67a7df2784ae25d3e9a8b3066c..1b335406e77e9bf4394544bf225013ce96c208ac 100644 (file)
@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "cpp_api/s_player.h"
 #include "cpp_api/s_server.h"
 #include "cpp_api/s_security.h"
+#include "util/basic_macros.h"
 
 /*****************************************************************************/
 /* Scripting <-> Server Game Interface                                       */
@@ -50,6 +51,7 @@ public:
 
 private:
        void InitializeModApi(lua_State *L, int top);
+       DISABLE_CLASS_COPY(ServerScripting);
 };
 
 void log_deprecated(const std::string &message);