]> granicus.if.org Git - icinga2/commitdiff
Fix style violations
authorGunnar Beutner <gunnar@beutner.name>
Sat, 21 Mar 2015 09:04:14 +0000 (10:04 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 21 Mar 2015 09:04:32 +0000 (10:04 +0100)
lib/icinga/externalcommandprocessor.cpp
lib/icinga/macroprocessor.cpp

index ec99796d17ced86a62c9d385fcbec435a4c29545..e9554d179288ec9ddd91da9f29eaafe80e018234 100644 (file)
@@ -995,7 +995,7 @@ void ExternalCommandProcessor::ProcessFile(double, const std::vector<String>& ar
 
        ifp.open(file.CStr(), std::ifstream::in);
 
-       while(ifp.good()) {
+       while (ifp.good()) {
                std::string line;
                std::getline(ifp, line);
 
index 7afb8142651421ab307d3aa6d35debd50762723b..77a3aeafc5d77a67151dc2c4cec8e6219ddcfd97 100644 (file)
@@ -312,7 +312,7 @@ bool MacroProcessor::ValidateMacroString(const String& macro)
        size_t pos_first, pos_second, offset;
        offset = 0;
 
-       while((pos_first = macro.FindFirstOf("$", offset)) != String::NPos) {
+       while ((pos_first = macro.FindFirstOf("$", offset)) != String::NPos) {
                pos_second = macro.FindFirstOf("$", pos_first + 1);
 
                if (pos_second == String::NPos)