Ver código fonte

LibWeb: Avoid HashMap copy in BrowsingContext::set_frame_nesting_levels

Andreas Kling 4 anos atrás
pai
commit
f670adb298
1 arquivos alterados com 1 adições e 1 exclusões
  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&);
     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; }
 
 private: