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
933ef8cf
Commit
933ef8cf
authored
Mar 11, 2010
by
Erik Verbruggen
Browse files
Added bounds check.
parent
b737fb86
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/ExpressionUnderCursor.cpp
View file @
933ef8cf
...
...
@@ -136,7 +136,7 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in
// [receiver messageParam1:expression messageParam2:expression messageParam3
// ... etc
int
i
=
index
-
1
;
while
(
tk
[
i
].
isNot
(
T_EOF_SYMBOL
))
{
while
(
i
>=
0
&&
tk
[
i
].
isNot
(
T_EOF_SYMBOL
))
{
if
(
tk
[
i
].
is
(
T_LBRACKET
))
break
;
if
(
tk
[
i
].
is
(
T_LBRACE
)
||
tk
[
i
].
is
(
T_RBRACE
))
...
...
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