From 3d1aba328730f66633894607905895d1a22e9aa9 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 21 Mar 2015 10:04:14 +0100 Subject: [PATCH] Fix style violations --- lib/icinga/externalcommandprocessor.cpp | 2 +- lib/icinga/macroprocessor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/icinga/externalcommandprocessor.cpp b/lib/icinga/externalcommandprocessor.cpp index ec99796d1..e9554d179 100644 --- a/lib/icinga/externalcommandprocessor.cpp +++ b/lib/icinga/externalcommandprocessor.cpp @@ -995,7 +995,7 @@ void ExternalCommandProcessor::ProcessFile(double, const std::vector& ar ifp.open(file.CStr(), std::ifstream::in); - while(ifp.good()) { + while (ifp.good()) { std::string line; std::getline(ifp, line); diff --git a/lib/icinga/macroprocessor.cpp b/lib/icinga/macroprocessor.cpp index 7afb81426..77a3aeafc 100644 --- a/lib/icinga/macroprocessor.cpp +++ b/lib/icinga/macroprocessor.cpp @@ -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)