diff options
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index 89ca9de..9ff63c2 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -1297,9 +1297,14 @@ void NamespaceDefImpl::combineUsingRelations() { if (m_visited) return; // already done m_visited=TRUE; - for (auto &nd : m_usingDirList) + LinkedRefMap<const NamespaceDef> usingDirList = m_usingDirList; + for (auto &nd : usingDirList) { const_cast<NamespaceDef*>(nd)->combineUsingRelations(); + } + + for (auto &nd : usingDirList) + { // add used namespaces of namespace nd to this namespace for (const auto &und : nd->getUsedNamespaces()) { |