aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-04-20 06:38:14 +0000
committernyamatongwe <devnull@localhost>2001-04-20 06:38:14 +0000
commit1c7fba4f03872994bfe3c41bee565d56a4b62ba7 (patch)
tree61592896a81d65674ae0f8415b32228eaba65f8c /src
parent62e5f76645051348cca787df91d8565da9bf0a55 (diff)
downloadscintilla-mirror-1c7fba4f03872994bfe3c41bee565d56a4b62ba7.tar.gz
Simplified because of warnings.
Diffstat (limited to 'src')
-rw-r--r--src/LexLua.cxx5
1 files changed, 2 insertions, 3 deletions
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)