1
Fork 0
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:
kleines Filmröllchen 2022-04-10 18:17:31 +02:00 committed by Andreas Kling
parent f1d44da422
commit 1b67e19bd6
2 changed files with 19 additions and 12 deletions

View file

@ -205,6 +205,8 @@ public:
virtual ~File() override { close(); }
static int open_mode_to_options(OpenMode mode);
private:
File(OpenMode mode)
: m_mode(mode)