summaryrefslogtreecommitdiff
path: root/Userland/Applications/Run
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-02-09 03:02:46 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:50:07 +0000
commit606a3982f34d777f121fcc4aa964141199676c20 (patch)
tree836fef41d11f1b77f4dac7d699e5c9f720ee4ff1 /Userland/Applications/Run
parenta96339b72b3b417ffaa4fbb4e7575149f749acaa (diff)
downloadserenity-606a3982f34d777f121fcc4aa964141199676c20.zip
LibCore: Move Stream-based file into the `Core` namespace
Diffstat (limited to 'Userland/Applications/Run')
-rw-r--r--Userland/Applications/Run/RunWindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp
index 4c86e9df8e..fc82de3cd6 100644
--- a/Userland/Applications/Run/RunWindow.cpp
+++ b/Userland/Applications/Run/RunWindow.cpp
@@ -170,8 +170,8 @@ DeprecatedString RunWindow::history_file_path()
ErrorOr<void> RunWindow::load_history()
{
m_path_history.clear();
- auto file = TRY(Core::Stream::File::open(history_file_path(), Core::Stream::OpenMode::Read));
- auto buffered_file = TRY(Core::Stream::BufferedFile::create(move(file)));
+ auto file = TRY(Core::File::open(history_file_path(), Core::File::OpenMode::Read));
+ auto buffered_file = TRY(Core::BufferedFile::create(move(file)));
Array<u8, PAGE_SIZE> line_buffer;
while (!buffered_file->is_eof()) {
@@ -184,7 +184,7 @@ ErrorOr<void> RunWindow::load_history()
ErrorOr<void> RunWindow::save_history()
{
- auto file = TRY(Core::Stream::File::open(history_file_path(), Core::Stream::OpenMode::Write));
+ auto file = TRY(Core::File::open(history_file_path(), Core::File::OpenMode::Write));
// Write the first 25 items of history
for (int i = 0; i < min(static_cast<int>(m_path_history.size()), 25); i++)