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 | 2bda47cbac6778a204037890479611a1631a480f (patch) | |
tree | 2ccda71201286ccc11205bdfe19f08cba90975f3 /lexers/LexHTML.cxx | |
parent | 8822e0ed1db342bf1947004c660a9c8649ce35c0 (diff) | |
download | scintilla-mirror-2bda47cbac6778a204037890479611a1631a480f.tar.gz |
Backport: Templatize MakeUpperCase/MakeLowerCase so they work on char/int without casts.
Backport of changeset 6707:29e80e764b46.
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); } } |