summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-10 08:04:00 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-10 08:04:00 (GMT)
commit8b2beb57d79ec2cadeb4bee7499ef805add8ff0c (patch)
treea42d3e8e0c0c502959df79152f1aadc00c530143
parentba09263b1ee07655cc032320794229d84d69db8a (diff)
Minor optimization
-rw-r--r--kioslave/pop3/pop3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kioslave/pop3/pop3.cpp b/kioslave/pop3/pop3.cpp
index e1b124d..5ee164a 100644
--- a/kioslave/pop3/pop3.cpp
+++ b/kioslave/pop3/pop3.cpp
@@ -650,7 +650,7 @@ bool POP3Protocol::pop3_open()
QString greeting = QLatin1String(greeting_buf);
delete[] greeting_buf;
- if (greeting.length() > 0) {
+ if (!greeting.isEmpty()) {
greeting.truncate(greeting.length() - 2);
}