Skip to content
GitLab
Menu
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
0b4802c6
Commit
0b4802c6
authored
Feb 13, 2009
by
Roberto Raggi
Browse files
Fixes: Possible crash in buildHelpId
parent
373a05af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cpphoverhandler.cpp
View file @
0b4802c6
...
...
@@ -158,8 +158,10 @@ static QString buildHelpId(const FullySpecifiedType &type,
scope
=
e
->
scope
();
}
else
if
(
const
NamedType
*
t
=
type
->
asNamedType
())
{
name
=
t
->
name
();
}
else
if
(
const
Declaration
*
d
=
symbol
->
asDeclaration
())
{
if
(
d
->
scope
()
&&
d
->
scope
()
->
owner
()
->
isEnum
())
{
}
else
if
(
symbol
&&
symbol
->
isDeclaration
())
{
const
Declaration
*
d
=
symbol
->
asDeclaration
();
if
(
d
->
scope
()
&&
d
->
scope
()
->
isEnumScope
())
{
name
=
d
->
name
();
scope
=
d
->
scope
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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