From f670adb298c4de937660c48f95bec6c6b6fa65dd Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 10 Jul 2021 01:44:02 +0200 Subject: [PATCH] LibWeb: Avoid HashMap copy in BrowsingContext::set_frame_nesting_levels --- Userland/Libraries/LibWeb/Page/BrowsingContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Page/BrowsingContext.h b/Userland/Libraries/LibWeb/Page/BrowsingContext.h index fc8c1f72ed3..df89a12c6d8 100644 --- a/Userland/Libraries/LibWeb/Page/BrowsingContext.h +++ b/Userland/Libraries/LibWeb/Page/BrowsingContext.h @@ -86,7 +86,7 @@ public: void register_frame_nesting(URL const&); bool is_frame_nesting_allowed(URL const&) const; - void set_frame_nesting_levels(const HashMap frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); }; + void set_frame_nesting_levels(HashMap frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); }; HashMap const& frame_nesting_levels() const { return m_frame_nesting_levels; } private: