diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-02-09 03:02:46 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:50:07 +0000 |
commit | 606a3982f34d777f121fcc4aa964141199676c20 (patch) | |
tree | 836fef41d11f1b77f4dac7d699e5c9f720ee4ff1 /Userland/Demos | |
parent | a96339b72b3b417ffaa4fbb4e7575149f749acaa (diff) | |
download | serenity-606a3982f34d777f121fcc4aa964141199676c20.zip |
LibCore: Move Stream-based file into the `Core` namespace
Diffstat (limited to 'Userland/Demos')
-rw-r--r-- | Userland/Demos/CatDog/CatDog.cpp | 3 | ||||
-rw-r--r-- | Userland/Demos/CatDog/CatDog.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Demos/CatDog/CatDog.cpp b/Userland/Demos/CatDog/CatDog.cpp index c276704ffe..70c9dd3cf5 100644 --- a/Userland/Demos/CatDog/CatDog.cpp +++ b/Userland/Demos/CatDog/CatDog.cpp @@ -6,6 +6,7 @@ */ #include "CatDog.h" +#include <LibCore/File.h> #include <LibCore/ProcessStatisticsReader.h> #include <LibGUI/Painter.h> #include <LibGUI/Window.h> @@ -55,7 +56,7 @@ ErrorOr<NonnullRefPtr<CatDog>> CatDog::create() } CatDog::CatDog() - : m_proc_all(MUST(Core::Stream::File::open("/sys/kernel/processes"sv, Core::Stream::OpenMode::Read))) + : m_proc_all(MUST(Core::File::open("/sys/kernel/processes"sv, Core::File::OpenMode::Read))) { m_idle_sleep_timer.start(); } diff --git a/Userland/Demos/CatDog/CatDog.h b/Userland/Demos/CatDog/CatDog.h index f5daca0e4d..0a86a013bf 100644 --- a/Userland/Demos/CatDog/CatDog.h +++ b/Userland/Demos/CatDog/CatDog.h @@ -74,7 +74,7 @@ private: Gfx::IntPoint m_mouse_offset {}; Core::ElapsedTimer m_idle_sleep_timer; - NonnullOwnPtr<Core::Stream::File> m_proc_all; + NonnullOwnPtr<Core::File> m_proc_all; State m_state { State::Roaming }; State m_frame { State::Frame1 }; |