mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 17:15:26 +00:00
Kernel: Use HashMap::try_ensure_capacity
This commit is contained in:
committed by
Andreas Kling
parent
7c82713ecb
commit
0380ff30aa
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user