aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-03-13 09:03:15 +1100
committerNeil <nyamatongwe@gmail.com>2020-03-13 09:03:15 +1100
commit3d4fafdd662a2ac7267afdaef44bad54302ebe50 (patch)
tree29831fd53d1d0fdb6dff8e0a6bc9d47dc4b75d27 /win32
parent62e9baae3f94f4bdc1c1741f056ccbd7e48421e6 (diff)
downloadscintilla-mirror-3d4fafdd662a2ac7267afdaef44bad54302ebe50.tar.gz
Backport: Using constexpr in UniConversion and CaseConvert.
Backport of changeset 8004:7052c60ce1b2.
Diffstat (limited to 'win32')
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index be4c59d4e..ae4ee839e 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1031,7 +1031,7 @@ void ScintillaWin::EscapeHanja() {
// ImmEscapeW() may overwrite uniChar[] with a null terminated string.
// So enlarge it enough to Maximum 4 as in UTF-8.
- unsigned int const safeLength = UTF8MaxBytes+1;
+ constexpr size_t safeLength = UTF8MaxBytes + 1;
std::string oneChar(safeLength, '\0');
pdoc->GetCharRange(&oneChar[0], currentPos, oneCharLen);