mirror of https://github.com/Icinga/icinga2.git
Fix style violations
This commit is contained in:
parent
7c0749679c
commit
3d1aba3287
|
@ -995,7 +995,7 @@ void ExternalCommandProcessor::ProcessFile(double, const std::vector<String>& ar
|
||||||
|
|
||||||
ifp.open(file.CStr(), std::ifstream::in);
|
ifp.open(file.CStr(), std::ifstream::in);
|
||||||
|
|
||||||
while(ifp.good()) {
|
while (ifp.good()) {
|
||||||
std::string line;
|
std::string line;
|
||||||
std::getline(ifp, line);
|
std::getline(ifp, line);
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,7 @@ bool MacroProcessor::ValidateMacroString(const String& macro)
|
||||||
size_t pos_first, pos_second, offset;
|
size_t pos_first, pos_second, offset;
|
||||||
offset = 0;
|
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);
|
pos_second = macro.FindFirstOf("$", pos_first + 1);
|
||||||
|
|
||||||
if (pos_second == String::NPos)
|
if (pos_second == String::NPos)
|
||||||
|
|
Loading…
Reference in New Issue