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 /lexers/LexHTML.cxx | |
parent | c4025b67d3afa0de81d6f6360a8d7a49bf1406c9 (diff) | |
download | scintilla-mirror-a8fed0f50f5ef7540102b03975ac4c68bc737e66.tar.gz |
Templatize MakeUpperCase/MakeLowerCase so they work on char/int without casts.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r-- | lexers/LexHTML.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index e17ba116c..948617184 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -58,7 +58,7 @@ inline bool IsOperator(int ch) { static void GetTextSegment(Accessor &styler, Sci_PositionU start, Sci_PositionU end, char *s, size_t len) { Sci_PositionU i = 0; for (; (i < end - start + 1) && (i < len-1); i++) { - s[i] = static_cast<char>(MakeLowerCase(styler[start + i])); + s[i] = MakeLowerCase(styler[start + i]); } s[i] = '\0'; } @@ -267,7 +267,7 @@ static int classifyTagHTML(Sci_PositionU start, Sci_PositionU end, for (Sci_PositionU cPos = start; cPos <= end && i < 30; cPos++) { char ch = styler[cPos]; if ((ch != '<') && (ch != '/')) { - withSpace[i++] = caseSensitive ? ch : static_cast<char>(MakeLowerCase(ch)); + withSpace[i++] = caseSensitive ? ch : MakeLowerCase(ch); } } |