diff options
Diffstat (limited to 'Userland/Applications/PartitionEditor')
-rw-r--r-- | Userland/Applications/PartitionEditor/PartitionModel.cpp | 3 | ||||
-rw-r--r-- | Userland/Applications/PartitionEditor/main.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Applications/PartitionEditor/PartitionModel.cpp b/Userland/Applications/PartitionEditor/PartitionModel.cpp index f6cf48cf49..73f7da320e 100644 --- a/Userland/Applications/PartitionEditor/PartitionModel.cpp +++ b/Userland/Applications/PartitionEditor/PartitionModel.cpp @@ -6,6 +6,7 @@ #include <AK/NumberFormat.h> #include <Applications/PartitionEditor/PartitionModel.h> +#include <LibCore/DeprecatedFile.h> #include <LibPartition/EBRPartitionTable.h> #include <LibPartition/GUIDPartitionTable.h> #include <LibPartition/MBRPartitionTable.h> @@ -62,7 +63,7 @@ GUI::Variant PartitionModel::data(GUI::ModelIndex const& index, GUI::ModelRole r ErrorOr<void> PartitionModel::set_device_path(DeprecatedString const& path) { - auto file = TRY(Core::File::open(path, Core::OpenMode::ReadOnly)); + auto file = TRY(Core::DeprecatedFile::open(path, Core::OpenMode::ReadOnly)); auto mbr_table_or_error = Partition::MBRPartitionTable::try_to_initialize(file); if (!mbr_table_or_error.is_error()) { diff --git a/Userland/Applications/PartitionEditor/main.cpp b/Userland/Applications/PartitionEditor/main.cpp index 8bf735f369..9c05c24ccb 100644 --- a/Userland/Applications/PartitionEditor/main.cpp +++ b/Userland/Applications/PartitionEditor/main.cpp @@ -6,6 +6,7 @@ #include <Applications/PartitionEditor/PartitionEditorWindowGML.h> #include <Applications/PartitionEditor/PartitionModel.h> +#include <LibCore/DeprecatedFile.h> #include <LibCore/DirIterator.h> #include <LibCore/System.h> #include <LibGUI/Application.h> @@ -22,7 +23,7 @@ static Vector<DeprecatedString> get_device_paths() Core::DirIterator iterator("/dev", Core::DirIterator::SkipParentAndBaseDir); while (iterator.has_next()) { auto path = iterator.next_full_path(); - if (Core::File::is_block_device(path)) + if (Core::DeprecatedFile::is_block_device(path)) device_paths.append(path); } return device_paths; |