| 1446 | } |
| 1447 | |
| 1448 | void DUContext::clearImportedParentContexts() |
| 1449 | { |
| 1450 | ENSURE_CAN_WRITE |
| 1451 | DUCHAIN_D_DYNAMIC(DUContext); |
| 1452 | |
| 1453 | while (d->m_importedContextsSize() != 0) { |
| 1454 | DUContext* ctx = d->m_importedContexts()[0].context(nullptr, false); |
| 1455 | if (ctx) |
| 1456 | ctx->m_dynamicData->removeImportedChildContext(this); |
| 1457 | |
| 1458 | d->m_importedContextsList().removeOne(d->m_importedContexts()[0]); |
| 1459 | } |
| 1460 | } |
| 1461 | |
| 1462 | void DUContext::cleanIfNotEncountered(const QSet<DUChainBase*>& encountered) |
| 1463 | { |