mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 19:15:07 +00:00
Kernel: Use HashMap::try_ensure_capacity
This commit is contained in:
parent
7c82713ecb
commit
0380ff30aa
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ UNMAP_AFTER_INIT CommandLine::CommandLine(StringView cmdline_from_bootloader)
|
|||
{
|
||||
s_the = this;
|
||||
auto const& args = m_string->view().split_view(' ');
|
||||
m_params.ensure_capacity(args.size());
|
||||
MUST(m_params.try_ensure_capacity(args.size()));
|
||||
add_arguments(args);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue