[icinga-checkins] icinga.org: icinga2/fix/add-missing-suse-build-requirement-7741: Fix incorrect return type for ScriptSignal::Invoke

git at icinga.org git at icinga.org
Tue Nov 25 12:10:19 CET 2014


Module: icinga2
Branch: fix/add-missing-suse-build-requirement-7741
Commit: 80e6854ce6da8be08b52ac32b685f419b3c807cf
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=80e6854ce6da8be08b52ac32b685f419b3c807cf

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Nov 20 19:43:50 2014 +0100

Fix incorrect return type for ScriptSignal::Invoke

refs #7744

---

 lib/base/scriptsignal.cpp |    2 +-
 lib/base/scriptsignal.hpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/base/scriptsignal.cpp b/lib/base/scriptsignal.cpp
index 4c64ccb..e78fade 100644
--- a/lib/base/scriptsignal.cpp
+++ b/lib/base/scriptsignal.cpp
@@ -27,7 +27,7 @@ void ScriptSignal::AddSlot(const Callback& 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)
 		slot(arguments);
diff --git a/lib/base/scriptsignal.hpp b/lib/base/scriptsignal.hpp
index 15f434d..76cea5c 100644
--- a/lib/base/scriptsignal.hpp
+++ b/lib/base/scriptsignal.hpp
@@ -41,7 +41,7 @@ public:
 	typedef boost::function<void (const std::vector<Value>& arguments)> Callback;
 
 	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 void Register(const String& name, const ScriptSignal::Ptr& signal);



More information about the icinga-checkins mailing list