Commit b8faa952 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Change a QString concatenation.

So that QT_USE_FAST_OPERATOR_PLUS QT_USE_FAST_CONCATENATION
may have an effect.
parent 64a2fa2a
......@@ -245,10 +245,11 @@ QVariant SearchResultTreeModel::data(const SearchResultFile *file, int role) con
break;
}
case Qt::DisplayRole: {
QString result = QDir::toNativeSeparators(file->fileName());
result += QLatin1String(" (");
result += QString::number(file->childrenCount());
result += QLatin1Char(')');
const QString result =
QDir::toNativeSeparators(file->fileName())
+ QString::fromLatin1(" (")
+ QString::number(file->childrenCount())
+ QLatin1Char(')');
return QVariant(result);
}
case ItemDataRoles::FileNameRole:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment