Fix incorrect return type for ScriptSignal::Invoke

refs #7744
This commit is contained in:
Gunnar Beutner 2014-11-20 19:43:50 +01:00
parent 06e72d134b
commit 80e6854ce6
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ void ScriptSignal::AddSlot(const Callback& slot)
m_Slots.push_back(slot); m_Slots.push_back(slot);
} }
Value ScriptSignal::Invoke(const std::vector<Value>& arguments) void ScriptSignal::Invoke(const std::vector<Value>& arguments)
{ {
BOOST_FOREACH(const Callback& slot, m_Slots) BOOST_FOREACH(const Callback& slot, m_Slots)
slot(arguments); slot(arguments);

View File

@ -41,7 +41,7 @@ public:
typedef boost::function<void (const std::vector<Value>& arguments)> Callback; typedef boost::function<void (const std::vector<Value>& arguments)> Callback;
void AddSlot(const Callback& slot); void AddSlot(const Callback& slot);
Value Invoke(const std::vector<Value>& arguments = std::vector<Value>()); void Invoke(const std::vector<Value>& arguments = std::vector<Value>());
static ScriptSignal::Ptr GetByName(const String& name); static ScriptSignal::Ptr GetByName(const String& name);
static void Register(const String& name, const ScriptSignal::Ptr& signal); static void Register(const String& name, const ScriptSignal::Ptr& signal);