forked from qt-creator/qt-creator
Don't mix iterator and const_iterator
This avoids unnecessary detaches of the Qt container data.
The mismatches where detected by defining QT_STRICT_ITERATORS;
however, this define violates the ODR (causing linker errors),
and therefore is not added permanently.
Change-Id: Idd336a9c8b394214a820437ef1b92d2101f6101c
GPush-Base: 62b0848b9c
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -1527,8 +1527,8 @@ void PluginManagerPrivate::profilingSummary() const
|
||||
total += it1.value();
|
||||
}
|
||||
|
||||
Sorter::ConstIterator it2 = sorter.begin();
|
||||
Sorter::ConstIterator et2 = sorter.end();
|
||||
Sorter::ConstIterator it2 = sorter.constBegin();
|
||||
Sorter::ConstIterator et2 = sorter.constEnd();
|
||||
for (; it2 != et2; ++it2)
|
||||
qDebug("%-22s %8dms ( %5.2f%% )", qPrintable(it2.value()->name()),
|
||||
it2.key(), 100.0 * it2.key() / total);
|
||||
|
||||
Reference in New Issue
Block a user