Commit b661cb99 authored by dt's avatar dt
Browse files

Improve performance, keys() is slow.


Reviewed-By: default avatarRoberto Raggi <roberto.raggi@nokia.com>
parent f03ce847
......@@ -202,7 +202,7 @@ namespace Internal {
i.next();
i.value()->compress();
if (i.value()->files.isEmpty() && i.value()->subnodes.size() == 1) {
QString key = i.value()->subnodes.keys().at(0);
QString key = i.value()->subnodes.begin().key();
newSubnodes.insert(i.key()+separator+key, i.value()->subnodes.value(key));
i.value()->subnodes.clear();
delete i.value();
......
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