Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
c842957a
Commit
c842957a
authored
Feb 09, 2009
by
Roberto Raggi
Browse files
Fixes: Possible crash in LookupContext.
parent
d5c9141c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Scope.cpp
View file @
c842957a
...
...
@@ -206,7 +206,9 @@ Symbol *Scope::lookat(Identifier *id) const
Symbol
*
symbol
=
_hash
[
h
];
for
(;
symbol
;
symbol
=
symbol
->
_next
)
{
Name
*
identity
=
symbol
->
identity
();
if
(
NameId
*
nameId
=
identity
->
asNameId
())
{
if
(
!
identity
)
{
continue
;
}
else
if
(
NameId
*
nameId
=
identity
->
asNameId
())
{
if
(
nameId
->
identifier
()
->
isEqualTo
(
id
))
break
;
}
else
if
(
TemplateNameId
*
t
=
identity
->
asTemplateNameId
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment