Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b661cb99
Commit
b661cb99
authored
Dec 09, 2009
by
dt
Browse files
Improve performance, keys() is slow.
Reviewed-By:
Roberto Raggi
<
roberto.raggi@nokia.com
>
parent
f03ce847
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4nodes.cpp
View file @
b661cb99
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment