diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 4b9349208..ae4fe0373 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -892,7 +892,7 @@ bool Lexer::isPath (std::string& token, Lexer::Type& type) std::size_t marker = _cursor; int slashCount = 0; - while (1) + while (true) { if (_text[marker] == '/') { diff --git a/src/recur2.cpp b/src/recur2.cpp index 4c22d7142..3acea5f35 100644 --- a/src/recur2.cpp +++ b/src/recur2.cpp @@ -291,7 +291,7 @@ static std::vector generateAllDueDates (const Task& templateTask) int recurrence_counter = 0; Datetime now; - while (1) + while (true) { Datetime nextDue = generateNextDueDate (due, recur, lastN);