diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 360cff073..df9522d7c 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -910,7 +910,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 f5a4bdbac..55c06ac54 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);