]> granicus.if.org Git - icinga2/commitdiff
Fix parameter type for Service::RemoveDowntime.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 08:06:31 +0000 (10:06 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 08:06:31 +0000 (10:06 +0200)
lib/icinga/service-downtime.cpp
lib/icinga/service.h

index a91aa7807c48ebd0c8e428515934417871aa345f..9686b905f9c8ee132026e84b66cc9554b92b4de6 100644 (file)
@@ -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);
 
index 14b8ffb348bb89e443a235162c482c3e7a6024a9..fff97d308379ec08d23b7b414c61a29d90155bf2 100644 (file)
@@ -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);