From 0380ff30aa5b95429dfd5761f5202c8a0aa079c6 Mon Sep 17 00:00:00 2001 From: Thomas Queiroz Date: Tue, 6 Dec 2022 03:15:46 -0300 Subject: [PATCH] Kernel: Use HashMap::try_ensure_capacity --- Kernel/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index cbc0d72ea7..a1b936c3f1 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -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); }