mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:07:44 +00:00
LibCore: Rename File
to DeprecatedFile
As usual, this removes many unused includes and moves used includes further down the chain.
This commit is contained in:
parent
14951b92ca
commit
d43a7eae54
193 changed files with 536 additions and 556 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue