aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCPP.cxx
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2011-11-09 13:37:27 +1100
committernyamatongwe <nyamatongwe@gmail.com>2011-11-09 13:37:27 +1100
commitb611cc2fb8f4cebed8dbcb9e1a2cae0a16faa486 (patch)
treef1a50493f9b2baa00d8072012a19fe66ff41eabc /lexers/LexCPP.cxx
parent67877c700222b1fc9d736a8a1cfb7349ec6b76d7 (diff)
downloadscintilla-mirror-b611cc2fb8f4cebed8dbcb9e1a2cae0a16faa486.tar.gz
Avoid warning about dead code.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r--lexers/LexCPP.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index 5cc2f4556..01ad43aea 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -90,7 +90,7 @@ static bool followsReturnKeyword(StyleContext &sc, LexAccessor &styler) {
static std::string GetRestOfLine(LexAccessor &styler, int start, bool allowSpace) {
std::string restOfLine;
int i =0;
- char ch = styler.SafeGetCharAt(start + i, '\n');
+ char ch = styler.SafeGetCharAt(start, '\n');
while ((ch != '\r') && (ch != '\n')) {
if (allowSpace || (ch != ' '))
restOfLine += ch;