Commit b3a56046 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

ClassView: Optimize for loops



Change-Id: I429638e9eb3705a7ccf3c2a79bae1f0f58967893
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent e23dbb4c
......@@ -665,7 +665,7 @@ void Parser::resetData(const CPlusPlus::Snapshot &snapshot)
// copy snapshot's documents
CPlusPlus::Snapshot::const_iterator cur = snapshot.begin();
CPlusPlus::Snapshot::const_iterator end = snapshot.end();
for (; cur != end; cur++)
for (; cur != end; ++cur)
d->documentList[cur.key()] = cur.value();
d->docLocker.unlock();
......
......@@ -135,7 +135,7 @@ void ParserTreeItem::copyTree(const ParserTreeItem::ConstPtr &target)
QHash<SymbolInformation, ParserTreeItem::Ptr>::const_iterator end =
target->d->symbolInformations.constEnd();
for (; cur != end; cur++) {
for (; cur != end; ++cur) {
ParserTreeItem::Ptr item(new ParserTreeItem());
item->copyTree(cur.value());
appendChild(item, cur.key());
......
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