Commit 570b8776 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use QString::isEmpty

parent b35d96b4
......@@ -120,7 +120,7 @@ QString SmsHelper::canonicalizePhoneNumber(const QString& phoneNumber)
toReturn = toReturn.remove(QStringLiteral("+"));
toReturn = toReturn.remove(leadingZeroes);
if (toReturn.length() == 0) {
if (toReturn.isEmpty()) {
// If we have stripped away everything, assume this is a special number (and already canonicalized)
return phoneNumber;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment