From 4aaaa8dcc8f6e9ecd62f2b9923123e27dd9b6ccf Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 28 Feb 2021 19:31:30 -0800 Subject: [PATCH] clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev --- 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 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);