From f3af6c7e5b46f4209a4981e5d7be217368f40b15 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 8 Feb 2024 15:12:29 +0800 Subject: Get rid of GSL. --- demos/InputMethod/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/InputMethod/main.cpp') 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(committed_text.size()); + static_cast(committed_text.size()); state->cursor_rect = text_layout->TextSinglePoint(cursor_pos, false); input_method_context->SetCandidateWindowPosition( -- cgit v1.2.3