diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-08-22 15:32:03 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-09-15 09:08:45 +0000 |
commit | 6b2071c697d4c48f0cd289b28b443ebffc3432e6 (patch) | |
tree | f947afcd0bc2b2374b5adfd3267e3f11ed4cebc8 /src/tools | |
parent | bee70b24c1d6180465e9040a0f8bbff051405e0c (diff) | |
download | qtbase-6b2071c697d4c48f0cd289b28b443ebffc3432e6.tar.gz |
Use QStringBuilder more to optimize memory allocations
Change-Id: I2939ffa10496fdc59e0402a9cb54458565ccd657
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/rcc/rcc.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/rcc/rcc.cpp b/src/tools/rcc/rcc.cpp index 3156df3f30..18772d2816 100644 --- a/src/tools/rcc/rcc.cpp +++ b/src/tools/rcc/rcc.cpp @@ -705,9 +705,7 @@ static void resourceDataFileMapRecursion(const RCCFileInfo *m_root, const QStrin const ChildConstIterator cend = m_root->m_children.constEnd(); for (ChildConstIterator it = m_root->m_children.constBegin(); it != cend; ++it) { const RCCFileInfo *child = it.value(); - QString childName = path; - childName += slash; - childName += child->m_name; + const QString childName = path + slash + child->m_name; if (child->m_flags & RCCFileInfo::Directory) { resourceDataFileMapRecursion(child, childName, m); } else { |