From 28431da0ae100163f0793f887326902683f9e3e0 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 24 Mar 2012 21:47:52 +0100 Subject: [PATCH] Nitpicky style change: use 'for(;;)' construct instead of 'while(true)' in the code. --- cli/threadexecutor.cpp | 2 +- lib/token.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index 9d49238dd..09973c659 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -134,7 +134,7 @@ unsigned int ThreadExecutor::check() std::map pipeFile; size_t processedsize = 0; std::map::const_iterator i = _files.begin(); - while (true) { + for (;;) { // Start a new child if (i != _files.end() && rpipes.size() < _settings._jobs) { int pipes[2]; diff --git a/lib/token.cpp b/lib/token.cpp index 5a54f978f..db29459ed 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -383,7 +383,7 @@ int Token::multiCompare(const char *haystack, const char *needle) bool emptyStringFound = false; const char *needlePointer = needle; - while (true) { + for(;;) { if (*needlePointer == *haystack) { if (*needlePointer == '\0') return 1;