diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-01-15 00:30:51 -0500 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-02-11 14:20:26 +0000 |
commit | 107e15c5bc74dafddfcaf5ad9964eac3c76c0888 (patch) | |
tree | c3ff6ba9cbd6a429bd40820699d607e7abfcfc21 /Userland/DevTools | |
parent | be28800e0dad1860cc96aabfa30ce1d51ce963f4 (diff) | |
download | serenity-107e15c5bc74dafddfcaf5ad9964eac3c76c0888.zip |
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.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/HackStudio/EditorWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/EditorWrapper.cpp b/Userland/DevTools/HackStudio/EditorWrapper.cpp index bb407f6446..d6c91d5ad2 100644 --- a/Userland/DevTools/HackStudio/EditorWrapper.cpp +++ b/Userland/DevTools/HackStudio/EditorWrapper.cpp @@ -79,7 +79,7 @@ void EditorWrapper::save() }); file_picker_action->activate(); } - editor().write_to_file(filename()); + editor().write_to_file(filename()).release_value_but_fixme_should_propagate_errors(); update_diff(); editor().update(); } |