Use empty() to check for container emptiness
It improves readability.
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
a61b67ea99
commit
4b43c8fa77
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user