[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sdk/kdevplatform/language/duchain
From: Milian Wolff <mail () milianw ! de>
Date: 2010-04-07 15:25:33
Message-ID: 20100407152533.DE61DAC892 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1112199 by mwolff:
only create IndexedIdentifier when required
M +1 -1 ducontext.cpp
--- trunk/extragear/sdk/kdevplatform/language/duchain/ducontext.cpp #1112198:1112199
@@ -718,7 +718,6 @@
void DUContext::findLocalDeclarationsInternal( const Identifier& identifier, const \
SimpleCursor & position, const AbstractType::Ptr& dataType, DeclarationList& ret, \
const TopDUContext* /*source*/, SearchFlags flags ) const {
- IndexedIdentifier indexedIdentifier(identifier);
{
QMutexLocker lock(&DUContextDynamicData::m_localDeclarationsMutex);
@@ -800,6 +799,7 @@
}else {
//Iterate through all declarations
DUContextDynamicData::VisibleDeclarationIterator it(m_dynamicData);
+ IndexedIdentifier indexedIdentifier(identifier);
while(it) {
Declaration* declaration = *it;
if(declaration->indexedIdentifier() == indexedIdentifier) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic