summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-02-19 23:36:30 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-21 00:54:04 +0100
commit456f12c5c8db085a4eb17498f97e61802852afb3 (patch)
tree6f5742bde6db4098b097b46c6d55e2b16f4304ef /Userland/Libraries/LibPartition/EBRPartitionTable.cpp
parentc837e7bbf3b83e11d8cb3044493bb15545f10eff (diff)
downloadserenity-456f12c5c8db085a4eb17498f97e61802852afb3.zip
LibPartition: Make Kernel parts const-correct re: StorageDevice&
We can't do I/O with a const StorageDevice&, so it has to be non-const.
Diffstat (limited to 'Userland/Libraries/LibPartition/EBRPartitionTable.cpp')
-rw-r--r--Userland/Libraries/LibPartition/EBRPartitionTable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibPartition/EBRPartitionTable.cpp b/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
index a2c039f796..dcffd39c40 100644
--- a/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
+++ b/Userland/Libraries/LibPartition/EBRPartitionTable.cpp
@@ -13,7 +13,7 @@
namespace Partition {
#ifdef KERNEL
-ErrorOr<NonnullOwnPtr<EBRPartitionTable>> EBRPartitionTable::try_to_initialize(Kernel::StorageDevice const& device)
+ErrorOr<NonnullOwnPtr<EBRPartitionTable>> EBRPartitionTable::try_to_initialize(Kernel::StorageDevice& device)
{
auto table = TRY(adopt_nonnull_own_or_enomem(new (nothrow) EBRPartitionTable(device)));
#else
@@ -29,7 +29,7 @@ ErrorOr<NonnullOwnPtr<EBRPartitionTable>> EBRPartitionTable::try_to_initialize(N
}
#ifdef KERNEL
-void EBRPartitionTable::search_extended_partition(Kernel::StorageDevice const& device, MBRPartitionTable& checked_ebr, u64 current_block_offset, size_t limit)
+void EBRPartitionTable::search_extended_partition(Kernel::StorageDevice& device, MBRPartitionTable& checked_ebr, u64 current_block_offset, size_t limit)
#else
void EBRPartitionTable::search_extended_partition(NonnullRefPtr<Core::DeprecatedFile> device, MBRPartitionTable& checked_ebr, u64 current_block_offset, size_t limit)
#endif
@@ -53,7 +53,7 @@ void EBRPartitionTable::search_extended_partition(NonnullRefPtr<Core::Deprecated
}
#ifdef KERNEL
-EBRPartitionTable::EBRPartitionTable(Kernel::StorageDevice const& device)
+EBRPartitionTable::EBRPartitionTable(Kernel::StorageDevice& device)
#else
EBRPartitionTable::EBRPartitionTable(NonnullRefPtr<Core::DeprecatedFile> device)
#endif