diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-10-17 21:50:24 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-10-17 21:50:24 +0800 |
| commit | 728d592f4075ae78b67dab6911ada05875a470a3 (patch) | |
| tree | 57a7232ea0a984b0344bc63a593c1dee65072d2f /src/platform/gui/osx/InputMethodPrivate.h | |
| parent | 045462a6aed2796976a2f5cf0042f9a0ac1493f7 (diff) | |
| download | cru-728d592f4075ae78b67dab6911ada05875a470a3.tar.gz cru-728d592f4075ae78b67dab6911ada05875a470a3.tar.bz2 cru-728d592f4075ae78b67dab6911ada05875a470a3.zip | |
Fix macOS build.
Diffstat (limited to 'src/platform/gui/osx/InputMethodPrivate.h')
| -rw-r--r-- | src/platform/gui/osx/InputMethodPrivate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/gui/osx/InputMethodPrivate.h b/src/platform/gui/osx/InputMethodPrivate.h index ac2d1bf4..39f3be02 100644 --- a/src/platform/gui/osx/InputMethodPrivate.h +++ b/src/platform/gui/osx/InputMethodPrivate.h @@ -24,7 +24,7 @@ class OsxInputMethodContextPrivate { void RaiseCompositionStartEvent(); void RaiseCompositionEndEvent(); void RaiseCompositionEvent(); - void RaiseTextEvent(StringView text); + void RaiseTextEvent(std::string text); Point GetCandidateWindowPosition() const { return candidate_window_point_; } void SetCandidateWindowPosition(const Point& p) { @@ -56,7 +56,7 @@ class OsxInputMethodContextPrivate { Event<std::nullptr_t> composition_start_event_; Event<std::nullptr_t> composition_event_; Event<std::nullptr_t> composition_end_event_; - Event<StringView> text_event_; + Event<std::string> text_event_; bool is_enabled_ = false; }; |
