aboutsummaryrefslogtreecommitdiffhomepage
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
commiteb13c0cf4e63a6d239b9b0671331ccbf914b6393 (patch)
treee6928a2b10bd5cfc120fe8ce514fad046ed2729a
parent5ff2773fb8e3a45f3f5a296c0c139ed426bb4355 (diff)
downloadscintilla-mirror-eb13c0cf4e63a6d239b9b0671331ccbf914b6393.tar.gz
Avoid warning about dead code.
-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;