aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-08-09 23:09:33 +0000
committernyamatongwe <unknown>2003-08-09 23:09:33 +0000
commite50e7cb10bf92fc875263783100058d7c690d9e1 (patch)
treeab4f2fa15acc68b1215eea15cb99146cedd38093 /src
parent6f3a5682b3aadafb84632e45cf89abb1b9315cc0 (diff)
downloadscintilla-mirror-e50e7cb10bf92fc875263783100058d7c690d9e1.tar.gz
Fixed warnings.
Diffstat (limited to 'src')
-rw-r--r--src/LexOthers.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx
index a4797ff05..31ac415ad 100644
--- a/src/LexOthers.cxx
+++ b/src/LexOthers.cxx
@@ -270,25 +270,22 @@ static void ColourisePropsDoc(unsigned int startPos, int length, int, WordList *
// adaption by ksc, using the "} else {" trick of 1.53
// 030721
-static void FoldPropsDoc(unsigned int startPos, int length, int initStyle, WordList *[], Accessor &styler) {
+static void FoldPropsDoc(unsigned int startPos, int length, int, WordList *[], Accessor &styler) {
bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0;
unsigned int endPos = startPos + length;
int visibleChars = 0;
int lineCurrent = styler.GetLine(startPos);
- int levelCurrent = SC_FOLDLEVELBASE;
- int levelNext = levelCurrent;
char chNext = styler[startPos];
int styleNext = styler.StyleAt(startPos);
- int style = initStyle;
bool headerPoint = false;
for (unsigned int i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler[i+1];
- style = styleNext;
+ int style = styleNext;
styleNext = styler.StyleAt(i + 1);
bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n');
@@ -313,7 +310,6 @@ static void FoldPropsDoc(unsigned int startPos, int length, int initStyle, WordL
lineCurrent++;
visibleChars = 0;
- levelCurrent = levelNext;
headerPoint=false;
}
if (!isspacechar(ch))