[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/parts/cppsupport
From:       Roberto Raggi <roberto () kdevelop ! org>
Date:       2003-10-01 14:34:45
[Download RAW message or body]

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;
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic