From aab3056e621dc3fb11c7042da3a13c523353ae4c Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 6 Oct 2018 15:42:17 -0400 Subject: [PATCH] Use isEmpty() rather than size() > 0 --- src/History.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/History.cpp b/src/History.cpp index fa8cfd19..94a05201 100644 --- a/src/History.cpp +++ b/src/History.cpp @@ -436,7 +436,7 @@ CompactHistoryLine::CompactHistoryLine(const TextLine &line, CompactHistoryBlock { _length = line.size(); - if (line.size() > 0) { + if (!line.isEmpty()) { _formatLength = 1; int k = 1;