mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:37:44 +00:00
Kernel: Use MUST + Vector::try_empend instead of Vector::empend
In preparation for making Vector::empend unavailable during compilation of the Kernel.
This commit is contained in:
parent
24066ba5ef
commit
6c66311ade
5 changed files with 10 additions and 10 deletions
|
@ -60,7 +60,7 @@ MBRPartitionTable::MBRPartitionTable(const StorageDevice& device, u32 start_lba)
|
|||
if (entry.offset == 0x00) {
|
||||
continue;
|
||||
}
|
||||
m_partitions.empend(entry.offset, (entry.offset + entry.length), entry.type);
|
||||
MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length), entry.type));
|
||||
}
|
||||
m_valid = true;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ MBRPartitionTable::MBRPartitionTable(const StorageDevice& device)
|
|||
if (entry.offset == 0x00) {
|
||||
continue;
|
||||
}
|
||||
m_partitions.empend(entry.offset, (entry.offset + entry.length), entry.type);
|
||||
MUST(m_partitions.try_empend(entry.offset, (entry.offset + entry.length), entry.type));
|
||||
}
|
||||
m_valid = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue