diff options
author | crupest <crupest@outlook.com> | 2024-02-08 15:12:29 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-02-08 15:12:29 +0800 |
commit | f3af6c7e5b46f4209a4981e5d7be217368f40b15 (patch) | |
tree | e932747ad91a718abb667a6170b21f1521a04d1e /demos/InputMethod/main.cpp | |
parent | bfe23251a54b036abef9241ba0994c9e51db25b2 (diff) | |
download | cru-f3af6c7e5b46f4209a4981e5d7be217368f40b15.tar.gz cru-f3af6c7e5b46f4209a4981e5d7be217368f40b15.tar.bz2 cru-f3af6c7e5b46f4209a4981e5d7be217368f40b15.zip |
Get rid of GSL.
Diffstat (limited to 'demos/InputMethod/main.cpp')
-rw-r--r-- | demos/InputMethod/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/InputMethod/main.cpp b/demos/InputMethod/main.cpp index fc63dd5e..cf42d3c2 100644 --- a/demos/InputMethod/main.cpp +++ b/demos/InputMethod/main.cpp @@ -146,7 +146,7 @@ int main() { text_layout->SetText(committed_text + composition_text.text); const auto cursor_pos = composition_text.selection.position + - gsl::narrow_cast<int>(committed_text.size()); + static_cast<int>(committed_text.size()); state->cursor_rect = text_layout->TextSinglePoint(cursor_pos, false); input_method_context->SetCandidateWindowPosition( |