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
fb4ad59d
Commit
fb4ad59d
authored
Feb 09, 2009
by
Roberto Raggi
Browse files
Fixes: Possible crash when parsing qt methods.
parent
25de88fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/CheckExpression.cpp
View file @
fb4ad59d
...
...
@@ -319,8 +319,8 @@ bool CheckExpression::visit(QtMethodAST *ast)
Scope
dummy
;
FullySpecifiedType
methTy
=
semantic
()
->
check
(
ast
->
declarator
,
FullySpecifiedType
(),
&
dummy
,
&
name
);
Function
*
fty
=
methTy
->
asFunctionType
()
;
if
(
!
fty
)
Function
*
fty
=
0
;
if
(
!
methTy
||
0
==
(
fty
=
methTy
->
asFunctionType
())
)
translationUnit
()
->
warning
(
ast
->
firstToken
(),
"expected a function declarator"
);
else
{
for
(
unsigned
i
=
0
;
i
<
fty
->
argumentCount
();
++
i
)
{
...
...
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