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

List:       kde-commits
Subject:    branches/kdevelop/3.4/languages/cpp
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2007-02-13 23:08:43
Message-ID: 1171408123.759472.32146.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 633380 by zwabel:

Do not iterate over the whole project while performing automatic view-synchronization

 M  +2 -2      cppsupportpart.cpp  


--- branches/kdevelop/3.4/languages/cpp/cppsupportpart.cpp #633379:633380
@@ -1214,7 +1214,7 @@
                     handled = jumpIfDeclMatchesDef( *it_decl, \
(FunctionDefinitionModel*) d.data(), true, scrollOnly );  }
             }
-            if ( !handled ) {
+	        if ( !handled && !scrollOnly ) { //scrollOnly is set when performing \
automatic synchronization. Do not search the whole project in that case(for \
                performance-reasons)
                 //Couldn't find the declaration using the filename as a hint, try \
iterating through the project files.  candidates = sourceOrHeaderCandidateList( file \
                );
                 for( it = candidates.begin(); it != candidates.end() && !handled; \
++it ) { @@ -1241,7 +1241,7 @@
                    handled = jumpIfDeclMatchesDef( d, *it_def, false, scrollOnly );
                 }
             }
-           if ( !handled ) {
+           if ( !handled && !scrollOnly ) { //scrollOnly is set when performing \
automatic synchronization. Do not search the whole project in that case(for \
                performance-reasons)
                 //Couldn't find the definition using the filename as a hint, try \
iterating through the project files.  candidates = sourceOrHeaderCandidateList( file \
                );
                 for( it = candidates.begin(); it != candidates.end() && !handled; \
++it ) {


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

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