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

List:       kde-commits
Subject:    KDE/kdevplatform/language/duchain/builders
From:       Nikolaus Sams <niko.sams () gmail ! com>
Date:       2008-08-12 16:39:40
Message-ID: 1218559180.422628.11015.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 845938 by nsams:

Use ReferencedTopDUContext to keep it alive


 M  +4 -4      abstractcontextbuilder.h  


--- trunk/KDE/kdevplatform/language/duchain/builders/abstractcontextbuilder.h #845937:845938
@@ -104,14 +104,14 @@
    *
    * \returns the newly created or updated TopDUContext pointer.
    */
-  virtual TopDUContext* build( const IndexedString& url, T* node,
-                              const TopDUContextPointer& updateContext
-                                    = TopDUContextPointer() )
+  virtual ReferencedTopDUContext build( const IndexedString& url, T* node,
+                              ReferencedTopDUContext updateContext
+                                    = ReferencedTopDUContext() )
   {
     m_compilingContexts = true;
     m_editor->setCurrentUrl( url );
 
-    TopDUContext* top = 0;
+    ReferencedTopDUContext top;
     {
       DUChainWriteLocker lock( DUChain::lock() );
       top = updateContext.data();
[prev in list] [next in list] [prev in thread] [next in thread] 

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