From ab128e03ff555a8fc292352b0b21fc1075a4c008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= 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/client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index c94936d85..babfe4680 100644 --- a/src/client.h +++ b/src/client.h @@ -272,6 +272,7 @@ public: ); ~Client(); + DISABLE_CLASS_COPY(Client); void initMods(); @@ -691,7 +692,6 @@ private: GameUIFlags *m_game_ui_flags; bool m_shutdown; - DISABLE_CLASS_COPY(Client); }; #endif // !CLIENT_HEADER -- cgit v1.2.3