aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-04-20 06:38:14 +0000
committernyamatongwe <unknown>2001-04-20 06:38:14 +0000
commite593f73fec0f3ff79cdf9c03e732d8229843a4dc (patch)
tree61592896a81d65674ae0f8415b32228eaba65f8c /src
parentc92011607b5db56771770b0fa0f9e50de528256b (diff)
downloadscintilla-mirror-e593f73fec0f3ff79cdf9c03e732d8229843a4dc.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)