浏览代码

LibWeb: Avoid HashMap copy in BrowsingContext::set_frame_nesting_levels

Andreas Kling 4 年之前
父节点
当前提交
f670adb298
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibWeb/Page/BrowsingContext.h

+ 1 - 1
Userland/Libraries/LibWeb/Page/BrowsingContext.h

@@ -86,7 +86,7 @@ public:
     void register_frame_nesting(URL const&);
     void register_frame_nesting(URL const&);
     bool is_frame_nesting_allowed(URL const&) const;
     bool is_frame_nesting_allowed(URL const&) const;
 
 
-    void set_frame_nesting_levels(const HashMap<URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); };
+    void set_frame_nesting_levels(HashMap<URL, size_t> frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); };
     HashMap<URL, size_t> const& frame_nesting_levels() const { return m_frame_nesting_levels; }
     HashMap<URL, size_t> const& frame_nesting_levels() const { return m_frame_nesting_levels; }
 
 
 private:
 private: