]> granicus.if.org Git - icinga2/commitdiff
Build fix for the Windows plugins
authorGunnar Beutner <gunnar@beutner.name>
Thu, 13 Nov 2014 19:11:17 +0000 (20:11 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 13 Nov 2014 19:12:24 +0000 (20:12 +0100)
plugins/thresholds.cpp

index 86e1582e94b95b7d64f6b682159b02aedca01a81..0cf80228e8c17309d74590bbf8a93021a708ca1f 100644 (file)
@@ -35,7 +35,7 @@ threshold parse(const wstring& stri)
        wstring str = stri;
 
        //kill whitespace
-       str.erase((std::remove(str.begin(), str.end(), L" "), str.end()));
+       boost::algorithm::trim(str);
 
        bool low = (str.at(0) == L'!');
        if (low)