summaryrefslogtreecommitdiff
path: root/Userland/Applications/Run
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-12 13:56:43 +0430
committerLinus Groh <mail@linusgroh.de>2021-05-12 11:00:45 +0100
commita91a49337c5992d64b30f493eea1eb492792b667 (patch)
treeb665e2c0b31a9935ca8a8f8b5b71bbadf476e32f /Userland/Applications/Run
parent422ef7904e9eb6be1182421a7529ed0d5e00991f (diff)
downloadserenity-a91a49337c5992d64b30f493eea1eb492792b667.zip
LibCore+Everywhere: Move OpenMode out of IODevice
...and make it an enum class so people don't omit "OpenMode".
Diffstat (limited to 'Userland/Applications/Run')
-rw-r--r--Userland/Applications/Run/RunWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp
index 106dde3f88..e1267c50c4 100644
--- a/Userland/Applications/Run/RunWindow.cpp
+++ b/Userland/Applications/Run/RunWindow.cpp
@@ -171,7 +171,7 @@ String RunWindow::history_file_path()
void RunWindow::load_history()
{
m_path_history.clear();
- auto file_or_error = Core::File::open(history_file_path(), Core::IODevice::ReadOnly);
+ auto file_or_error = Core::File::open(history_file_path(), Core::OpenMode::ReadOnly);
if (file_or_error.is_error())
return;
@@ -185,7 +185,7 @@ void RunWindow::load_history()
void RunWindow::save_history()
{
- auto file_or_error = Core::File::open(history_file_path(), Core::IODevice::WriteOnly);
+ auto file_or_error = Core::File::open(history_file_path(), Core::OpenMode::WriteOnly);
if (file_or_error.is_error())
return;