From 8593825eee9f264c3e07a3ee24e24ef83d93f559 Mon Sep 17 00:00:00 2001 From: Yves Date: Sat, 9 Aug 2014 21:16:25 +0000 Subject: [PATCH] Modifies 23c708f72a to use the NONCOPYABLE macro as suggested by leper. This was SVN commit r15626. --- source/scriptinterface/ScriptInterface.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);