diff --git a/Libraries/LibWeb/IndexedDB/Internal/Index.cpp b/Libraries/LibWeb/IndexedDB/Internal/Index.cpp index 0da6d7c9a60..8ebc95c101f 100644 --- a/Libraries/LibWeb/IndexedDB/Internal/Index.cpp +++ b/Libraries/LibWeb/IndexedDB/Internal/Index.cpp @@ -13,14 +13,14 @@ GC_DEFINE_ALLOCATOR(Index); Index::~Index() = default; -GC::Ref Index::create(JS::Realm& realm, GC::Ref store, String name, KeyPath const& key_path, bool unique, bool multi_entry) +GC::Ref Index::create(JS::Realm& realm, GC::Ref store, String const& name, KeyPath const& key_path, bool unique, bool multi_entry) { return realm.create(store, name, key_path, unique, multi_entry); } -Index::Index(GC::Ref store, String name, KeyPath const& key_path, bool unique, bool multi_entry) +Index::Index(GC::Ref store, String const& name, KeyPath const& key_path, bool unique, bool multi_entry) : m_object_store(store) - , m_name(move(name)) + , m_name(name) , m_unique(unique) , m_multi_entry(multi_entry) , m_key_path(key_path) diff --git a/Libraries/LibWeb/IndexedDB/Internal/Index.h b/Libraries/LibWeb/IndexedDB/Internal/Index.h index 641d92817bd..130526f1845 100644 --- a/Libraries/LibWeb/IndexedDB/Internal/Index.h +++ b/Libraries/LibWeb/IndexedDB/Internal/Index.h @@ -28,7 +28,7 @@ class Index : public JS::Cell { GC_DECLARE_ALLOCATOR(Index); public: - [[nodiscard]] static GC::Ref create(JS::Realm&, GC::Ref, String, KeyPath const&, bool, bool); + [[nodiscard]] static GC::Ref create(JS::Realm&, GC::Ref, String const&, KeyPath const&, bool, bool); virtual ~Index(); void set_name(String name); @@ -45,7 +45,7 @@ protected: virtual void visit_edges(Visitor&) override; private: - Index(GC::Ref, String, KeyPath const&, bool, bool); + Index(GC::Ref, String const&, KeyPath const&, bool, bool); // An index [...] has a referenced object store. GC::Ref m_object_store;