diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2015-08-12 13:17:58 +0100 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2015-08-13 16:11:48 +0000 |
commit | b5572010798198de7b58ca3b905cb2691a316d1a (patch) | |
tree | b15505115ab0f68fcb6defd338c28a673af8ad65 /src/qml/compiler/qv4ssa.cpp | |
parent | fbdc01f141a4ec4e6fc78ea69d86ff7aa128bf72 (diff) |
qml: Avoid heap allocations due to QString::fromLatin1()
By using QStringLiteral when the argument is a literal.
Change-Id: Ib25042d10f3d9d0aca81af74cde0107aba4f9432
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/compiler/qv4ssa.cpp')
-rw-r--r-- | src/qml/compiler/qv4ssa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4ssa.cpp b/src/qml/compiler/qv4ssa.cpp index cc60dde4cc..62e661c98a 100644 --- a/src/qml/compiler/qv4ssa.cpp +++ b/src/qml/compiler/qv4ssa.cpp @@ -3912,7 +3912,7 @@ void cfg2dot(IR::Function *f, const QVector<LoopDetection::LoopInfo *> &loops = QString name; if (f->name) name = *f->name; - else name = QString::fromLatin1("%1").arg((unsigned long long)f); + else name = QStringLiteral("%1").arg((unsigned long long)f); qout << "digraph \"" << name << "\" { ordering=out;\n"; foreach (LoopDetection::LoopInfo *l, loops) { |