From e08f76c40c66a8e9190d79cf8d38173fd1fe37b7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 17 Feb 2001 10:40:09 +0000 Subject: Fixed some warnings from Borland. --- src/LexAVE.cxx | 2 -- src/PropSet.cxx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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(ch - 'a' + 'A'); } int CompareCaseInsensitive(const char *a, const char *b) { -- cgit v1.2.3