mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibCore: Extract Stream::OpenMode conversion helper into static function
This commit is contained in:
parent
f1d44da422
commit
1b67e19bd6
Notes:
sideshowbarker
2024-07-17 12:07:40 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 1b67e19bd6
Pull-request: https://github.com/SerenityOS/serenity/pull/13603
Issue: https://github.com/SerenityOS/serenity/issues/13555
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/alichraghi ✅
Reviewed-by: https://github.com/awesomekling
2 changed files with 19 additions and 12 deletions
|
@ -205,6 +205,8 @@ public:
|
|||
|
||||
virtual ~File() override { close(); }
|
||||
|
||||
static int open_mode_to_options(OpenMode mode);
|
||||
|
||||
private:
|
||||
File(OpenMode mode)
|
||||
: m_mode(mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue