diff options
author | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-05-06 16:08:20 +0200 |
---|---|---|
committer | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-05-09 13:21:47 +0000 |
commit | 7234a59e03e0e0088c0be5c4fed1d500d3c4f029 (patch) | |
tree | dc7277c8bdf09662f4108109c7ca5344ca638d95 /src/qml/qml/qqmlimport.cpp | |
parent | 58bedefe772a83baa8809d7f3f4a683fa35f1ba8 (diff) |
Scrape off a few allocations by using the QStringBuilder
Change-Id: I7689fabb5398c2c2d2781b2c788dcc60f4e1ea44
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlimport.cpp')
-rw-r--r-- | src/qml/qml/qqmlimport.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp index d6c81bcc49..5ce3942be2 100644 --- a/src/qml/qml/qqmlimport.cpp +++ b/src/qml/qml/qqmlimport.cpp @@ -1647,10 +1647,7 @@ QString QQmlImportDatabase::resolvePlugin(QQmlTypeLoader *typeLoader, resolvedPath += Slash; foreach (const QString &suffix, suffixes) { - QString pluginFileName = prefix; - - pluginFileName += baseName; - pluginFileName += suffix; + QString pluginFileName = prefix + baseName + suffix; QString absolutePath = typeLoader->absoluteFilePath(resolvedPath + pluginFileName); if (!absolutePath.isEmpty()) |