From b58c9ee3f8d547f29e38fdd694c43342f66e35ad Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 30 Mar 2014 15:08:29 +0200 Subject: [PATCH] Build fix. Refs #5780 --- lib/base/scriptinterpreter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/base/scriptinterpreter.cpp b/lib/base/scriptinterpreter.cpp index 08572b28a..947195e6d 100644 --- a/lib/base/scriptinterpreter.cpp +++ b/lib/base/scriptinterpreter.cpp @@ -40,9 +40,7 @@ void ScriptInterpreter::SubscribeFunction(const String& name) ObjectLock olock(this); m_SubscribedFunctions.insert(name); - - ScriptFunction::Ptr sf = make_shared(boost::bind(&ScriptInterpreter::ProcessCall, this, name, _1)); - ScriptFunction::Register(name, sf); + ScriptFunction::Register(name, boost::bind(&ScriptInterpreter::ProcessCall, this, name, _1)); } void ScriptInterpreter::UnsubscribeFunction(const String& name)