mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
LibGUI: Base write_to_file(StringView path)
on the stream overload
`write_to_file(StringView path)` was based on the `Core::File` overload. The return type also changed from `bool` to `ErrorOr<void>` to ease error propagation.
This commit is contained in:
parent
be28800e0d
commit
107e15c5bc
3 changed files with 6 additions and 10 deletions
|
@ -129,7 +129,7 @@ public:
|
|||
|
||||
void insert_at_cursor_or_replace_selection(StringView);
|
||||
void replace_all_text_without_resetting_undo_stack(StringView text);
|
||||
bool write_to_file(DeprecatedString const& path);
|
||||
ErrorOr<void> write_to_file(StringView path);
|
||||
bool write_to_file(Core::File&);
|
||||
ErrorOr<void> write_to_file(Core::Stream::File&);
|
||||
bool has_selection() const { return m_selection.is_valid(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue