From 4e8af55cbd22ad6cde430cafb8ddf9313693d1cc Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 24 May 2014 09:26:35 +1000 Subject: Moving declaration inside loop to prevent a 'scope can be reduced' warning. --- lexers/LexPS.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lexers') 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) { -- cgit v1.2.3