1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

Spreadsheet: Make file export functions return ErrorOr<>

This commit is contained in:
Karol Kosek 2022-12-31 15:38:12 +01:00 committed by Ali Mohammad Pur
parent 29a3cdcfb7
commit 5793f7749c
5 changed files with 59 additions and 68 deletions

View file

@ -23,7 +23,7 @@ struct CSVExportDialogPage {
explicit CSVExportDialogPage(Sheet const&);
NonnullRefPtr<GUI::WizardPage> page() { return *m_page; }
Optional<XSV> make_writer(OutputStream&);
ErrorOr<XSV> make_writer(OutputStream&);
protected:
void update_preview();
@ -54,7 +54,7 @@ private:
};
struct ExportDialog {
static Result<void, DeprecatedString> make_and_run_for(StringView mime, Core::File& file, Workbook&);
static ErrorOr<void> make_and_run_for(StringView mime, Core::File& file, Workbook&);
};
}