diff options
Diffstat (limited to 'Source/WebCore/html/FormDataList.h')
-rw-r--r-- | Source/WebCore/html/FormDataList.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/WebCore/html/FormDataList.h b/Source/WebCore/html/FormDataList.h index 24f544990..aa2c2974b 100644 --- a/Source/WebCore/html/FormDataList.h +++ b/Source/WebCore/html/FormDataList.h @@ -18,8 +18,7 @@ * */ -#ifndef FormDataList_h -#define FormDataList_h +#pragma once #include "Blob.h" #include "TextEncoding.h" @@ -34,7 +33,10 @@ public: public: Item() { } Item(const WTF::CString& data) : m_data(data) { } - Item(PassRefPtr<Blob> blob, const String& filename) : m_blob(blob), m_filename(filename) { } + Item(Ref<Blob>&& blob, const String& filename) + : m_blob(WTFMove(blob)) + , m_filename(filename) + { } const WTF::CString& data() const { return m_data; } Blob* blob() const { return m_blob.get(); } @@ -63,10 +65,10 @@ public: appendString(key); appendString(String::number(value)); } - void appendBlob(const String& key, PassRefPtr<Blob> blob, const String& filename = String()) + void appendBlob(const String& key, Ref<Blob>&& blob, const String& filename = String()) { appendString(key); - appendBlob(blob, filename); + appendBlob(WTFMove(blob), filename); } const Vector<Item>& items() const { return m_items; } @@ -75,12 +77,10 @@ public: private: void appendString(const CString&); void appendString(const String&); - void appendBlob(PassRefPtr<Blob>, const String& filename); + void appendBlob(Ref<Blob>&&, const String& filename); TextEncoding m_encoding; Vector<Item> m_items; }; } // namespace WebCore - -#endif // FormDataList_h |