mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
LibCore: Extract Stream::OpenMode conversion helper into static function
This commit is contained in:
parent
f1d44da422
commit
1b67e19bd6
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