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

List:       kde-commits
Subject:    [kdev-php] completion: cast to correct class, fixes TestCompletion::overrideMethods
From:       Niko Sams <niko.sams () gmail ! com>
Date:       2013-12-08 15:39:21
Message-ID: E1VpgS1-0003RT-Sy () scm ! kde ! org
[Download RAW message or body]

Git commit edf7d79393b915807ac59ee0585ff6d64db5c398 by Niko Sams.
Committed on 08/12/2013 at 15:37.
Pushed by nsams into branch 'master'.

cast to correct class, fixes TestCompletion::overrideMethods

M  +1    -1    completion/context.cpp

http://commits.kde.org/kdev-php/edf7d79393b915807ac59ee0585ff6d64db5c398

diff --git a/completion/context.cpp b/completion/context.cpp
index fa3694e..61a7ca1 100644
--- a/completion/context.cpp
+++ b/completion/context.cpp
@@ -1254,7 +1254,7 @@ QList<CompletionTreeItemPointer> \
                CodeCompletionContext::completionItems(bool& ab
                     //TODO: always add __construct, __destruct and maby other magic \
                functions
                     // get all visible declarations and add inherited to the \
                completion items
                     foreach(const DeclarationDepthPair& decl, \
                ctx->allDeclarations(ctx->range().end, m_duContext->topContext(), \
                false)) {
-                        ClassMemberDeclaration *member = \
dynamic_cast<ClassMemberDeclaration*>(decl.first); +                        \
ClassFunctionDeclaration *member = \
dynamic_cast<ClassFunctionDeclaration*>(decl.first);  if (member) {
                             if (decl.second == 0) {
                                 // this function is already implemented


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

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