From 282acd94ec9f6f36877b57c4be6a9239d71b1372 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 18 Sep 2013 10:06:31 +0200 Subject: [PATCH] Fix parameter type for Service::RemoveDowntime. --- lib/icinga/service-downtime.cpp | 2 +- lib/icinga/service.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);