diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-19 22:49:44 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-19 22:49:44 +1000 | 
| commit | a8fed0f50f5ef7540102b03975ac4c68bc737e66 (patch) | |
| tree | a438b588704daa03f5e30a8e06d83b3044191e6c /lexlib/CharacterSet.cxx | |
| parent | c4025b67d3afa0de81d6f6360a8d7a49bf1406c9 (diff) | |
| download | scintilla-mirror-a8fed0f50f5ef7540102b03975ac4c68bc737e66.tar.gz | |
Templatize MakeUpperCase/MakeLowerCase so they work on char/int without casts.
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 791177fcc..2a1dabc1c 100644 --- a/lexlib/CharacterSet.cxx +++ b/lexlib/CharacterSet.cxx @@ -18,8 +18,8 @@ namespace Scintilla {  int CompareCaseInsensitive(const char *a, const char *b) {  	while (*a && *b) {  		if (*a != *b) { -			const char upperA = static_cast<char>(MakeUpperCase(*a)); -			const char upperB = static_cast<char>(MakeUpperCase(*b)); +			const char upperA = MakeUpperCase(*a); +			const char upperB = MakeUpperCase(*b);  			if (upperA != upperB)  				return upperA - upperB;  		} @@ -33,8 +33,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) { -			const char upperA = static_cast<char>(MakeUpperCase(*a)); -			const char upperB = static_cast<char>(MakeUpperCase(*b)); +			const char upperA = MakeUpperCase(*a); +			const char upperB = MakeUpperCase(*b);  			if (upperA != upperB)  				return upperA - upperB;  		} | 
