forked from qt-creator/qt-creator
Revert "Fixed possible crash in dangling pointers in namespaces."
Main reason is that find-usages and refactoring broke completely.
Second reason is that concurrent modification was done on the
children-list while deleting/destructing.
This reverts commit b0b95f8875
.
This commit is contained in:
@@ -186,7 +186,7 @@ void CheckUndefinedSymbols::buildTypeMap(NamespaceBinding *binding, QSet<Namespa
|
||||
_namespaceNames.insert(QByteArray(id->chars(), id->size()));
|
||||
}
|
||||
|
||||
foreach (Namespace *ns, binding->symbols()) {
|
||||
foreach (Namespace *ns, binding->symbols) {
|
||||
for (unsigned i = 0; i < ns->memberCount(); ++i) {
|
||||
Symbol *member = ns->memberAt(i);
|
||||
|
||||
@@ -217,7 +217,7 @@ void CheckUndefinedSymbols::buildTypeMap(NamespaceBinding *binding, QSet<Namespa
|
||||
}
|
||||
}
|
||||
|
||||
foreach (NamespaceBinding *childBinding, binding->children()) {
|
||||
foreach (NamespaceBinding *childBinding, binding->children) {
|
||||
buildTypeMap(childBinding, processed);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user