From: Gunnar Beutner Date: Wed, 18 Sep 2013 08:06:31 +0000 (+0200) Subject: Fix parameter type for Service::RemoveDowntime. X-Git-Tag: v0.0.3~479 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=282acd94ec9f6f36877b57c4be6a9239d71b1372;p=icinga2 Fix parameter type for Service::RemoveDowntime. --- diff --git a/lib/icinga/service-downtime.cpp b/lib/icinga/service-downtime.cpp index a91aa7807..9686b905f 100644 --- a/lib/icinga/service-downtime.cpp +++ b/lib/icinga/service-downtime.cpp @@ -123,7 +123,7 @@ String Service::AddDowntime(const String& comment_id, return uid; } -void Service::RemoveDowntime(const String& id, const bool& cancelled, const String& authority) +void Service::RemoveDowntime(const String& id, bool cancelled, const String& authority) { Service::Ptr owner = GetOwnerByDowntimeID(id); diff --git a/lib/icinga/service.h b/lib/icinga/service.h index 14b8ffb34..fff97d308 100644 --- a/lib/icinga/service.h +++ b/lib/icinga/service.h @@ -262,7 +262,7 @@ public: const String& triggeredBy, double duration, const String& id = String(), const String& authority = String()); - static void RemoveDowntime(const String& id, const bool& cancelled, const String& = String()); + static void RemoveDowntime(const String& id, bool cancelled, const String& = String()); void TriggerDowntimes(void); static void TriggerDowntime(const String& id);