diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-23 11:15:16 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-23 13:53:22 +0100 |
commit | b0b95f88756dbdf4981c97a325734300a65d8268 (patch) | |
tree | edd8bd52961e1a134ab2a1243ba2d326c29ec236 /src/libs/cplusplus/CheckUndefinedSymbols.cpp | |
parent | 84344041b8a290b7b987f6c1932f5d22a22252a1 (diff) | |
download | qt-creator-b0b95f88756dbdf4981c97a325734300a65d8268.tar.gz |
Fixed possible crash in dangling pointers in namespaces.
Patch by: Bill King
Diffstat (limited to 'src/libs/cplusplus/CheckUndefinedSymbols.cpp')
-rw-r--r-- | src/libs/cplusplus/CheckUndefinedSymbols.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/cplusplus/CheckUndefinedSymbols.cpp b/src/libs/cplusplus/CheckUndefinedSymbols.cpp index 3e435077a6..7c5edf508e 100644 --- a/src/libs/cplusplus/CheckUndefinedSymbols.cpp +++ b/src/libs/cplusplus/CheckUndefinedSymbols.cpp @@ -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); } } |