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
Marco Bubke
flatpak-qt-creator
Commits
d209bd72
Commit
d209bd72
authored
Jul 05, 2010
by
Roberto Raggi
Browse files
Check for possible 0x0 access.
parent
27141eb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppquickfix.cpp
View file @
d209bd72
...
...
@@ -443,7 +443,7 @@ public:
// show when we're on the 'if' of an if statement
int
index
=
path
.
size
()
-
1
;
IfStatementAST
*
ifStatement
=
path
.
at
(
index
)
->
asIfStatement
();
if
(
ifStatement
&&
isCursorOn
(
ifStatement
->
if_token
)
if
(
ifStatement
&&
isCursorOn
(
ifStatement
->
if_token
)
&&
ifStatement
->
statement
&&
!
ifStatement
->
statement
->
asCompoundStatement
())
{
_statement
=
ifStatement
->
statement
;
return
index
;
...
...
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