mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Use HashMap::try_ensure_capacity
This commit is contained in:
parent
7c82713ecb
commit
0380ff30aa
Notes:
sideshowbarker
2024-07-17 03:28:13 +09:00
Author: https://github.com/thomasqueirozb Commit: https://github.com/SerenityOS/serenity/commit/0380ff30aa Pull-request: https://github.com/SerenityOS/serenity/pull/16334
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…
Reference in a new issue