Browse Source

LibCore: Explicitly mark HashMap copy

Ben Wiederhake 2 years ago
parent
commit
31ba0a1a4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibCore/MimeData.h

+ 1 - 1
Userland/Libraries/LibCore/MimeData.h

@@ -41,7 +41,7 @@ public:
 private:
     MimeData() = default;
     explicit MimeData(HashMap<DeprecatedString, ByteBuffer> const& data)
-        : m_data(data)
+        : m_data(data.clone().release_value_but_fixme_should_propagate_errors())
     {
     }