]> granicus.if.org Git - icinga2/commitdiff
Build fix.
authorGunnar Beutner <gunnar@beutner.name>
Sun, 30 Mar 2014 13:08:29 +0000 (15:08 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sun, 30 Mar 2014 13:08:29 +0000 (15:08 +0200)
Refs #5780

lib/base/scriptinterpreter.cpp

index 08572b28ac5c1a5f15ab3e1877cd883c89a191c0..947195e6d724c8cc46beb739b40f0d75e11a4a08 100644 (file)
@@ -40,9 +40,7 @@ void ScriptInterpreter::SubscribeFunction(const String& name)
        ObjectLock olock(this);
 
        m_SubscribedFunctions.insert(name);
-
-       ScriptFunction::Ptr sf = make_shared<ScriptFunction>(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)