diff options
author | Karol Kosek <krkk@serenityos.org> | 2022-05-22 12:14:18 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-05-24 03:36:04 +0430 |
commit | 6a4b125fe50aaa3f59fdcc09f34b17ba23d49666 (patch) | |
tree | 36fb7587ff3f4bb70a6408dc132913aecfc972e7 /Userland/Applications/Spreadsheet/Workbook.h | |
parent | 04443eb847b113024a1663c04a8407a6cddef281 (diff) | |
download | serenity-6a4b125fe50aaa3f59fdcc09f34b17ba23d49666.zip |
Spreadsheet: Make save functions take a Core::File instead of a filename
This allows us to use FileSystemAccessClient functions.
Diffstat (limited to 'Userland/Applications/Spreadsheet/Workbook.h')
-rw-r--r-- | Userland/Applications/Spreadsheet/Workbook.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Spreadsheet/Workbook.h b/Userland/Applications/Spreadsheet/Workbook.h index b1b28beee9..656d00fc96 100644 --- a/Userland/Applications/Spreadsheet/Workbook.h +++ b/Userland/Applications/Spreadsheet/Workbook.h @@ -17,8 +17,8 @@ class Workbook { public: Workbook(NonnullRefPtrVector<Sheet>&& sheets, GUI::Window& parent_window); - Result<bool, String> save(StringView filename); Result<bool, String> open_file(Core::File&); + Result<bool, String> write_to_file(Core::File&); String const& current_filename() const { return m_current_filename; } bool set_filename(String const& filename); |