From b611cc2fb8f4cebed8dbcb9e1a2cae0a16faa486 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 9 Nov 2011 13:37:27 +1100 Subject: Avoid warning about dead code. --- lexers/LexCPP.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') 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; -- cgit v1.2.3