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/LexSQL.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/LexSQL.cxx') diff --git a/src/LexSQL.cxx b/src/LexSQL.cxx index 0f5ca5614..900f8ddc2 100644 --- a/src/LexSQL.cxx +++ b/src/LexSQL.cxx @@ -44,20 +44,18 @@ static void ColouriseSQLDoc(unsigned int startPos, int length, bool fold = styler.GetPropSet().GetInt("fold"); int lineCurrent = styler.GetLine(startPos); int spaceFlags = 0; - int indentCurrent = 0; int state = initStyle; char chPrev = ' '; char chNext = styler[startPos]; styler.StartSegment(startPos); unsigned int lengthDoc = startPos + length; - bool prevCr = false; for (unsigned int i = startPos; i <= lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { - indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags); + int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags); int lev = indentCurrent; if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { // Only non whitespace lines can be headers -- cgit v1.2.3