Use QString::isEmpty
This commit is contained in:
parent
b35d96b471
commit
570b8776c6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue