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

List:       kde-commits
Subject:    kdevelop/languages/cpp
From:       Adam Treat <manyoso () yahoo ! com>
Date:       2005-03-10 5:42:28
Message-ID: 20050310054228.B41CC17AA0 () office ! kde ! org
[Download RAW message or body]

CVS commit by treat: 

* Take care not to make a pig of code completion when a type alias decides
to reference itself :P


  M +3 -2      cppsupport_utils.cpp   1.6


--- kdevelop/languages/cpp/cppsupport_utils.cpp  #1.5:1.6
@@ -73,5 +73,6 @@ QMap<QString, QString> typedefMap( const
         for ( ; it != map.end(); ++it )
         {
-                while ( map.contains( map[ it.key() ] ) )
+                while ( map.contains( map[ it.key() ] ) && 
+                        it.key() != map[ it.key() ] )
                 {
                         map[ it.key() ] = map[ map[ it.key() ] ];


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

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