From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/DOMFormData.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/html/DOMFormData.h') diff --git a/Source/WebCore/html/DOMFormData.h b/Source/WebCore/html/DOMFormData.h index 842e62b04..adbcbbfc3 100644 --- a/Source/WebCore/html/DOMFormData.h +++ b/Source/WebCore/html/DOMFormData.h @@ -28,12 +28,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DOMFormData_h -#define DOMFormData_h +#pragma once #include "FormDataList.h" #include -#include #include namespace WebCore { @@ -44,11 +42,11 @@ class TextEncoding; class DOMFormData : public FormDataList, public RefCounted { public: - static PassRefPtr create(HTMLFormElement* form) { return adoptRef(new DOMFormData(form)); } - static PassRefPtr create(const TextEncoding& encoding) { return adoptRef(new DOMFormData(encoding)); } + static Ref create(HTMLFormElement* form) { return adoptRef(*new DOMFormData(form)); } + static Ref create(const TextEncoding& encoding) { return adoptRef(*new DOMFormData(encoding)); } void append(const String& name, const String& value); - void append(const String& name, Blob*, const String& filename = String()); + void append(const String& name, Blob&, const String& filename = String()); private: explicit DOMFormData(const TextEncoding&); @@ -56,5 +54,3 @@ private: }; } // namespace WebCore - -#endif // DOMFormData_h -- cgit v1.2.1