diff --git a/source/scriptinterface/ScriptInterface.h b/source/scriptinterface/ScriptInterface.h index 530c2451ff..ccca75bf77 100644 --- a/source/scriptinterface/ScriptInterface.h +++ b/source/scriptinterface/ScriptInterface.h @@ -78,6 +78,8 @@ class CDebuggingServer; */ class ScriptInterface { + NONCOPYABLE(ScriptInterface); + public: /** @@ -404,9 +406,6 @@ public: private: - // Prevent copying of ScriptInterface objects. - ScriptInterface(const ScriptInterface&) {}; - bool CallFunction_(JS::HandleValue val, const char* name, uint argc, jsval* argv, JS::MutableHandleValue ret); bool Eval_(const char* code, JS::MutableHandleValue ret); bool Eval_(const wchar_t* code, JS::MutableHandleValue ret);