From e593f73fec0f3ff79cdf9c03e732d8229843a4dc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 20 Apr 2001 06:38:14 +0000 Subject: Simplified because of warnings. --- src/LexLua.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/LexLua.cxx b/src/LexLua.cxx index 6c4b3ed5d..7bd06b430 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -222,7 +222,7 @@ static void ColouriseLuaDoc(unsigned int startPos, styler.ColourTo(lengthDoc - 1, state); } -static void FoldLuaDoc(unsigned int startPos, int length, int initStyle, WordList *[], +static void FoldLuaDoc(unsigned int startPos, int length, int /* initStyle */, WordList *[], Accessor &styler) { unsigned int lengthDoc = startPos + length; int visibleChars = 0; @@ -231,12 +231,11 @@ static void FoldLuaDoc(unsigned int startPos, int length, int initStyle, WordLis int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); - int style = initStyle; char s[10]; for (unsigned int i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); - style = styleNext; + int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (style == SCE_LUA_WORD) -- cgit v1.2.3