forked from qt-creator/qt-creator
Use isEmpty() instead of count() or size()
Change-Id: I0a89d2808c6d041da0dc41ea5aea58e6e8759bb4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -6666,7 +6666,7 @@ static int someInt(const QString &str)
|
||||
{
|
||||
if (str.toInt())
|
||||
return str.toInt();
|
||||
if (str.size())
|
||||
if (!str.isEmpty())
|
||||
return str.at(0).unicode();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user