From 0e6e05226f69f7bdd5fe4415a43be5be882b414c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 1 Apr 2000 02:01:28 +0000 Subject: Fixed warnings from Borland compiler. --- src/LexPython.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/LexPython.cxx') diff --git a/src/LexPython.cxx b/src/LexPython.cxx index acce39a4a..d7830b0b7 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -65,7 +65,6 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, char chPrev = ' '; char chPrev2 = ' '; char chNext = styler[startPos]; - char chNext2 = styler[startPos]; styler.StartSegment(startPos); int lengthDoc = startPos + length; bool atStartLine = true; @@ -86,7 +85,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); - chNext2 = styler.SafeGetCharAt(i + 2); + char chNext2 = styler.SafeGetCharAt(i + 2); if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == lengthDoc)) { if ((state == SCE_P_DEFAULT) || (state == SCE_P_TRIPLE) || (state == SCE_P_TRIPLEDOUBLE)) { -- cgit v1.2.3