From kde-commits Wed Oct 01 14:34:45 2003 From: Roberto Raggi Date: Wed, 01 Oct 2003 14:34:45 +0000 To: kde-commits Subject: kdevelop/parts/cppsupport X-MARC-Message: https://marc.info/?l=kde-commits&m=106501736920575 CVS commit by raggi: fixed a possible crash in code completion M +2 -1 cppcodecompletion.cpp 1.139 --- kdevelop/parts/cppsupport/cppcodecompletion.cpp #1.138:1.139 @@ -1754,4 +1754,5 @@ ClassDom CppCodeCompletion::findContaine while( it != path.end() ){ QString s = *it; + QStringList::Iterator sv_it = it; ++it; @@ -1762,5 +1763,5 @@ ClassDom CppCodeCompletion::findContaine NamespaceDom scope = container->namespaceByName( s ); - path.remove( s ); + path.remove( sv_it ); container = scope; }