forked from qt-creator/qt-creator
ClassView: Optimize for loops
Change-Id: I429638e9eb3705a7ccf3c2a79bae1f0f58967893 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
e23dbb4c65
commit
b3a5604634
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user