mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:07:43 +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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue