diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-24 09:26:35 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-24 09:26:35 +1000 |
commit | f84a69d28698468076c0abc82fe9bb3ddf060a68 (patch) | |
tree | 02897201452cdb314c237ecec2b78fea2ee4b905 | |
parent | e744d191cb5398139666d188dac7c94358ba512c (diff) | |
download | scintilla-mirror-f84a69d28698468076c0abc82fe9bb3ddf060a68.tar.gz |
Moving declaration inside loop to prevent a 'scope can be reduced' warning.
-rw-r--r-- | lexers/LexPS.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lexers/LexPS.cxx b/lexers/LexPS.cxx index 3661c4b66..ae2635368 100644 --- a/lexers/LexPS.cxx +++ b/lexers/LexPS.cxx @@ -296,11 +296,10 @@ static void FoldPSDoc(unsigned int startPos, int length, int, WordList *[], int levelNext = levelCurrent; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); - int style; for (unsigned int i = startPos; i < endPos; 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'); //mac?? if ((style & 31) == SCE_PS_PAREN_PROC) { |