Use empty() to check for container emptiness

It improves readability.
This commit is contained in:
Luís Pereira
2021-03-04 19:44:08 +00:00
committed by Chih-Hsuan Yen
parent a61b67ea99
commit 4b43c8fa77
+1 -1
View File
@@ -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;