aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/CharacterSet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lexlib/CharacterSet.cxx')
-rw-r--r--lexlib/CharacterSet.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexlib/CharacterSet.cxx b/lexlib/CharacterSet.cxx
index bb9a86df6..0db3e41b7 100644
--- a/lexlib/CharacterSet.cxx
+++ b/lexlib/CharacterSet.cxx
@@ -22,8 +22,8 @@ namespace Scintilla {
int CompareCaseInsensitive(const char *a, const char *b) {
while (*a && *b) {
if (*a != *b) {
- char upperA = static_cast<char>(MakeUpperCase(*a));
- char upperB = static_cast<char>(MakeUpperCase(*b));
+ const char upperA = static_cast<char>(MakeUpperCase(*a));
+ const char upperB = static_cast<char>(MakeUpperCase(*b));
if (upperA != upperB)
return upperA - upperB;
}
@@ -37,8 +37,8 @@ int CompareCaseInsensitive(const char *a, const char *b) {
int CompareNCaseInsensitive(const char *a, const char *b, size_t len) {
while (*a && *b && len) {
if (*a != *b) {
- char upperA = static_cast<char>(MakeUpperCase(*a));
- char upperB = static_cast<char>(MakeUpperCase(*b));
+ const char upperA = static_cast<char>(MakeUpperCase(*a));
+ const char upperB = static_cast<char>(MakeUpperCase(*b));
if (upperA != upperB)
return upperA - upperB;
}