aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-04-01 15:21:07 +1100
committernyamatongwe <devnull@localhost>2013-04-01 15:21:07 +1100
commit9e1af40727591017d5d25c8a9a52af0f9bde6cd3 (patch)
treebf8a8788a1ee84fd6a570f60ab57de5bfa387405
parent3b9151f20a26c69428590bedab0270fedf334db8 (diff)
downloadscintilla-mirror-9e1af40727591017d5d25c8a9a52af0f9bde6cd3.tar.gz
Reduce scope of variable.
-rw-r--r--lexers/LexCPP.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index 116ea7279..0e14eebdb 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -66,9 +66,8 @@ static bool followsReturnKeyword(StyleContext &sc, LexAccessor &styler) {
int pos = (int) sc.currentPos;
int currentLine = styler.GetLine(pos);
int lineStartPos = styler.LineStart(currentLine);
- char ch;
while (--pos > lineStartPos) {
- ch = styler.SafeGetCharAt(pos);
+ char ch = styler.SafeGetCharAt(pos);
if (ch != ' ' && ch != '\t') {
break;
}