forked from qt-creator/qt-creator
Fix Krazy code scanning tool warnings (QString, loops, spelling).
This commit is contained in:
@@ -55,13 +55,13 @@ static QString toString(Statement *statement)
|
||||
{
|
||||
ExpressionStatement *expStmt = cast<ExpressionStatement *>(statement);
|
||||
if (!expStmt)
|
||||
return QString::null;
|
||||
return QString();
|
||||
if (IdentifierExpression *idExp = cast<IdentifierExpression *>(expStmt->expression)) {
|
||||
return idExp->name->asString();
|
||||
} else if (StringLiteral *strExp = cast<StringLiteral *>(expStmt->expression)) {
|
||||
return strExp->value->asString();
|
||||
}
|
||||
return QString::null;
|
||||
return QString();
|
||||
}
|
||||
|
||||
static QString getIdProperty(UiObjectDefinition *def)
|
||||
|
||||
@@ -100,5 +100,5 @@ QString ComponentNameDialog::isValid() const
|
||||
if (path.isEmpty() || !QFileInfo(path).isDir())
|
||||
return tr("Invalid path");
|
||||
|
||||
return QString::null;
|
||||
return QString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user