[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sdk/kdevplatform/language/duchain
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2010-04-18 11:06:26
Message-ID: 20100418110626.F08C1AC89C () svn ! kde ! org
[Download RAW message or body]
SVN commit 1115999 by zwabel:
Turn an assertion into a warning, as this seems to happen sometimes.
BUG: 227675
M +7 -3 ducontext.cpp
--- trunk/extragear/sdk/kdevplatform/language/duchain/ducontext.cpp #1115998:1115999
@@ -1376,9 +1376,13 @@
FOREACH_ARRAY( Declaration* importDecl, imports )
{
//Search for the identifier with the import-identifier prepended
- Q_ASSERT(dynamic_cast<NamespaceAliasDeclaration*>(importDecl));
- NamespaceAliasDeclaration* alias = \
static_cast<NamespaceAliasDeclaration*>(importDecl);
- identifiers.append( SearchItem::Ptr( new SearchItem( \
alias->importIdentifier(), identifier ) ) ) ; + \
if(dynamic_cast<NamespaceAliasDeclaration*>(importDecl)) + {
+ NamespaceAliasDeclaration* alias = \
static_cast<NamespaceAliasDeclaration*>(importDecl); + identifiers.append( \
SearchItem::Ptr( new SearchItem( alias->importIdentifier(), identifier ) ) ) ; + \
}else{ + kDebug() << "Declaration with namespace alias identifier has the \
wrong type" << importDecl->url().str() << importDecl->range().textRange(); + \
} }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic