Use QString::isEmpty

This commit is contained in:
Nicolas Fella 2020-04-08 10:47:47 +02:00
parent b35d96b471
commit 570b8776c6

View file

@ -120,7 +120,7 @@ QString SmsHelper::canonicalizePhoneNumber(const QString& phoneNumber)
toReturn = toReturn.remove(QStringLiteral("+")); toReturn = toReturn.remove(QStringLiteral("+"));
toReturn = toReturn.remove(leadingZeroes); 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) // If we have stripped away everything, assume this is a special number (and already canonicalized)
return phoneNumber; return phoneNumber;
} }