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:
parent
29a3cdcfb7
commit
5793f7749c
5 changed files with 59 additions and 68 deletions
|
@ -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&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue