diff options
author | Neil <nyamatongwe@gmail.com> | 2016-10-06 13:53:02 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-10-06 13:53:02 +1100 |
commit | 1967c348184a35007b7fce5da81d7874a51edc3e (patch) | |
tree | 10f552751ed42c75dc7ce39351741eacc431030b /lexlib/CharacterSet.cxx | |
parent | 27ea5a8c1461bd86dd3b43b679480d8dffc5581b (diff) | |
download | scintilla-mirror-1967c348184a35007b7fce5da81d7874a51edc3e.tar.gz |
Move MakeLowerCase into CharacterSet.h as that is where MakeUpperCase is.
Change the argument and return type of MakeUpperCase to match MakeLowerCase.
Move StyleContext::MatchIgnoreCase into StyleContext.cxx as the change of
header for MakeLowerCase couldn't be reconciled easily.
Add casts as needed.
Diffstat (limited to 'lexlib/CharacterSet.cxx')
-rw-r--r-- | lexlib/CharacterSet.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexlib/CharacterSet.cxx b/lexlib/CharacterSet.cxx index 0ab2cc0cc..55602af30 100644 --- a/lexlib/CharacterSet.cxx +++ b/lexlib/CharacterSet.cxx @@ -25,8 +25,8 @@ namespace Scintilla { int CompareCaseInsensitive(const char *a, const char *b) { while (*a && *b) { if (*a != *b) { - char upperA = MakeUpperCase(*a); - char upperB = MakeUpperCase(*b); + char upperA = static_cast<char>(MakeUpperCase(*a)); + char upperB = static_cast<char>(MakeUpperCase(*b)); if (upperA != upperB) return upperA - upperB; } @@ -40,8 +40,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 = MakeUpperCase(*a); - char upperB = MakeUpperCase(*b); + char upperA = static_cast<char>(MakeUpperCase(*a)); + char upperB = static_cast<char>(MakeUpperCase(*b)); if (upperA != upperB) return upperA - upperB; } |