[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/language/duchain
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2008-11-29 19:34:38
Message-ID: 1227987278.736247.25869.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 890664 by zwabel:
Don't crash when an importer has been added multiple times. When templates are \
involved, the structure might be a bit inconsistent in some places. So just don't \
crash.
M +4 -1 ducontext.cpp
--- trunk/KDE/kdevplatform/language/duchain/ducontext.cpp #890663:890664
@@ -456,7 +456,10 @@
void DUContextDynamicData::addImportedChildContext( DUContext * context )
{
// ENSURE_CAN_WRITE
- Q_ASSERT(!arrayContains(m_context->d_func_dynamic()->m_importersList(), \
IndexedDUContext(context))); + \
if(arrayContains(m_context->d_func_dynamic()->m_importersList(), \
IndexedDUContext(context))) { + kDebug(9505) << \
m_context->scopeIdentifier(true).toString() << "importer added multiple times:" << \
context->scopeIdentifier(true).toString(); + return;
+ }
m_context->d_func_dynamic()->m_importersList().append(context);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic