From 444e5955accb8d7b4c28a161731328d26d57c1f0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 5 Dec 2020 16:18:15 -0500 Subject: [PATCH] Revert "[clang-tidy] Convert 0/1 to false/true" This reverts commit 54e40008c93d43bb5a15c11f97fcc5fa65d967df. --- src/Lexer.cpp | 2 +- src/recur2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index ae4fe0373..4b9349208 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 (true) + while (1) { if (_text[marker] == '/') { diff --git a/src/recur2.cpp b/src/recur2.cpp index 3acea5f35..4c22d7142 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 (true) + while (1) { Datetime nextDue = generateNextDueDate (due, recur, lastN);