mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibCore+Everywhere: Move OpenMode out of IODevice
...and make it an enum class so people don't omit "OpenMode".
This commit is contained in:
parent
422ef7904e
commit
a91a49337c
113 changed files with 180 additions and 177 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue