mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
C++: Don't use optional::value
It is not available when targetting older macOs since it can throw an exception that needs library support
This commit is contained in:
parent
0fabba49ec
commit
347b2d0fbf
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ inline void set_platform(std::unique_ptr<Platform> platform)
|
|||
|
||||
bool status = maybe_clipboard.has_value();
|
||||
if (status)
|
||||
*out_text = maybe_clipboard.value();
|
||||
*out_text = *maybe_clipboard;
|
||||
return status;
|
||||
},
|
||||
[](void *p) { return reinterpret_cast<Platform *>(p)->run_event_loop(); },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue