diff options
-rw-r--r-- | src/LexAVE.cxx | 2 | ||||
-rw-r--r-- | src/PropSet.cxx | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/LexAVE.cxx b/src/LexAVE.cxx index 6bfced6e4..6382f6cf7 100644 --- a/src/LexAVE.cxx +++ b/src/LexAVE.cxx @@ -32,7 +32,6 @@ static void ColouriseAveDoc(unsigned int startPos, int length, int initStyle, Wo int state = initStyle; if (state == SCE_AVE_STRINGEOL) // Does not leak onto next line state = SCE_AVE_DEFAULT; - char chPrev = ' '; char chNext = styler[startPos]; unsigned int lengthDoc = startPos + length; int visibleChars = 0; @@ -65,7 +64,6 @@ static void ColouriseAveDoc(unsigned int startPos, int length, int initStyle, Wo visibleChars++; if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); - chPrev = ' '; i += 1; continue; } diff --git a/src/PropSet.cxx b/src/PropSet.cxx index 45419bcd1..aa7423cbc 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -21,7 +21,7 @@ inline char MakeUpperCase(char ch) { if (ch < 'a' || ch > 'z') return ch; else - return ch - 'a' + 'A'; + return static_cast<char>(ch - 'a' + 'A'); } int CompareCaseInsensitive(const char *a, const char *b) { |