aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2024-12-03 08:50:22 +1100
committerZufu Liu <unknown>2024-12-03 08:50:22 +1100
commitabec74401030826f15b2cdf9e281a95887c5e369 (patch)
tree5f2b58d6a1f3d9573a04c7c38cfddcb0ce99e317
parent19a8d747a56e7cb9e543cb807cf08fd95f3d617a (diff)
downloadscintilla-mirror-abec74401030826f15b2cdf9e281a95887c5e369.tar.gz
Feature [feature-requests:#1537]. Declare IME retrieval methods const.
-rw-r--r--win32/ScintillaWin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index cae80473b..b11a0a95b 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -270,7 +270,7 @@ public:
return ImmGetCompositionStringW(hIMC, GCS_CURSORPOS, nullptr, 0);
}
- std::vector<BYTE> GetImeAttributes() {
+ std::vector<BYTE> GetImeAttributes() const {
const int attrLen = ::ImmGetCompositionStringW(hIMC, GCS_COMPATTR, nullptr, 0);
std::vector<BYTE> attr(attrLen, 0);
::ImmGetCompositionStringW(hIMC, GCS_COMPATTR, &attr[0], static_cast<DWORD>(attr.size()));
@@ -282,7 +282,7 @@ public:
return byteLen / sizeof(wchar_t);
}
- std::wstring GetCompositionString(DWORD dwIndex) {
+ std::wstring GetCompositionString(DWORD dwIndex) const {
const LONG byteLen = ::ImmGetCompositionStringW(hIMC, dwIndex, nullptr, 0);
std::wstring wcs(byteLen / 2, 0);
::ImmGetCompositionStringW(hIMC, dwIndex, &wcs[0], byteLen);