mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
TextEditor: Propagate errors from read_file()
This commit is contained in:
parent
3454185d08
commit
a053807be5
3 changed files with 9 additions and 11 deletions
|
@ -25,7 +25,7 @@ class MainWidget final : public GUI::Widget {
|
|||
|
||||
public:
|
||||
virtual ~MainWidget() override = default;
|
||||
bool read_file(String const& filename, Core::Stream::File&);
|
||||
ErrorOr<void> read_file(String const& filename, Core::Stream::File&);
|
||||
void open_nonexistent_file(DeprecatedString const& path);
|
||||
bool request_close();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue