mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:17:46 +00:00
Spreadsheet: Port from Result
to ErrorOr
This commit is contained in:
parent
4952cdfe2b
commit
81008062a7
4 changed files with 15 additions and 27 deletions
|
@ -9,7 +9,6 @@
|
|||
#include "Forward.h"
|
||||
#include "Spreadsheet.h"
|
||||
#include <AK/NonnullOwnPtrVector.h>
|
||||
#include <AK/Result.h>
|
||||
|
||||
namespace Spreadsheet {
|
||||
|
||||
|
@ -17,10 +16,10 @@ class Workbook {
|
|||
public:
|
||||
Workbook(NonnullRefPtrVector<Sheet>&& sheets, GUI::Window& parent_window);
|
||||
|
||||
Result<bool, DeprecatedString> open_file(Core::File&);
|
||||
ErrorOr<void, DeprecatedString> open_file(Core::File&);
|
||||
ErrorOr<void> write_to_file(Core::File&);
|
||||
|
||||
Result<bool, DeprecatedString> import_file(Core::File&);
|
||||
ErrorOr<bool, DeprecatedString> import_file(Core::File&);
|
||||
|
||||
DeprecatedString const& current_filename() const { return m_current_filename; }
|
||||
bool set_filename(DeprecatedString const& filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue