clang-tidy: use bool literals

Found with modernize-use-bool-literals

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-02-28 19:31:30 -08:00
committed by Tomas Babej
parent 8ffb85b327
commit 4aaaa8dcc8
2 changed files with 2 additions and 2 deletions

View File

@@ -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] == '/')
{

View File

@@ -291,7 +291,7 @@ static std::vector <Datetime> generateAllDueDates (const Task& templateTask)
int recurrence_counter = 0;
Datetime now;
while (1)
while (true)
{
Datetime nextDue = generateNextDueDate (due, recur, lastN);