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)
|
||||
|
||||
Reference in New Issue
Block a user