]> granicus.if.org Git - icinga2/commitdiff
Use Utility::NaturalJoin for notification filter formatting
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 19 Mar 2015 13:08:06 +0000 (14:08 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 19 Mar 2015 13:09:14 +0000 (14:09 +0100)
refs #8685

lib/icinga/notification.cpp

index 801a7c68da4d23f4cfa096381f3aa5e12b52f27f..afce5c1e886796b5f01958a4dca478b1e82be40b 100644 (file)
@@ -29,7 +29,6 @@
 #include "base/scriptglobal.hpp"
 #include "base/function.hpp"
 #include <boost/foreach.hpp>
-#include <boost/algorithm/string.hpp>
 
 using namespace icinga;
 
@@ -571,7 +570,7 @@ std::vector<String> icinga::FilterIntToArray(int iFilter)
 
 String Notification::NotificationFilterToString(int filter)
 {
-       return "'" + boost::algorithm::join(FilterIntToArray(filter), "', '") + "'";
+       return Utility::NaturalJoin(FilterIntToArray(filter));
 }
 
 /* internal for logging */