Commit 56391444 authored by Eike Ziller's avatar Eike Ziller

ClassView: Avoid mixing const and non-const iterators

Change-Id: I27e35b0225345de7b335dd8ac3a1af5fd5cf164e
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <>
parent 58c329cd
......@@ -457,13 +457,13 @@ void Manager::gotoLocations(const QList<QVariant> &list)
int column;
textEditor->convertPosition(textEditor->position(), &line, &column);
SymbolLocation current(fileName, line, column);
QSet<SymbolLocation>::const_iterator it = locations.find(current);
QSet<SymbolLocation>::const_iterator it = locations.constFind(current);
QSet<SymbolLocation>::const_iterator end = locations.constEnd();
if (it != end) {
// we already are at the symbol, cycle to next location
if (it == end)
it = locations.begin();
it = locations.constBegin();
loc = *it;
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