From 4b43c8fa7789cd2d0ea85a39b1504e4290b4c9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Thu, 4 Mar 2021 19:44:08 +0000 Subject: [PATCH] Use empty() to check for container emptiness It improves readability. --- lib/History.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/History.cpp b/lib/History.cpp index b287290..71a7095 100644 --- a/lib/History.cpp +++ b/lib/History.cpp @@ -612,7 +612,7 @@ CompactHistoryLine::CompactHistoryLine ( const TextLine& line, CompactHistoryBlo { length=line.size(); - if (line.size() > 0) { + if (!line.empty()) { formatLength=1; int k=1;