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

List:       kde-commits
Subject:    KDE/kdevelop/plugins/languages/cpp/cppduchain
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2009-02-03 22:03:21
Message-ID: 1233698601.747981.21343.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 920858 by zwabel:

Also return the template-context when it's directly attached to the declaration


 M  +2 -0      declarationbuilder.cpp  


--- trunk/KDE/kdevelop/plugins/languages/cpp/cppduchain/declarationbuilder.cpp #920857:920858
@@ -87,6 +87,8 @@
   DUContext* internal = decl->internalContext();
   if( !internal )
     return 0;
+  if(internal->type() == DUContext::Template)
+    return internal;
   foreach( const DUContext::Import &ctx, internal->importedParentContexts() ) {
     if( ctx.context(decl->topContext()) )
       if( ctx.context(decl->topContext())->type() == DUContext::Template )
[prev in list] [next in list] [prev in thread] [next in thread] 

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