Nitpicky style change: use 'for(;;)' construct instead of 'while(true)' in the code.
This commit is contained in:
parent
e6bcab7c35
commit
28431da0ae
|
@ -134,7 +134,7 @@ unsigned int ThreadExecutor::check()
|
|||
std::map<int, std::string> pipeFile;
|
||||
size_t processedsize = 0;
|
||||
std::map<std::string, size_t>::const_iterator i = _files.begin();
|
||||
while (true) {
|
||||
for (;;) {
|
||||
// Start a new child
|
||||
if (i != _files.end() && rpipes.size() < _settings._jobs) {
|
||||
int pipes[2];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue