summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/DOMStringList.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/DOMStringList.h')
-rw-r--r--Source/WebCore/dom/DOMStringList.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WebCore/dom/DOMStringList.h b/Source/WebCore/dom/DOMStringList.h
index d365799bc..69cb2d7f9 100644
--- a/Source/WebCore/dom/DOMStringList.h
+++ b/Source/WebCore/dom/DOMStringList.h
@@ -23,10 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMStringList_h
-#define DOMStringList_h
+#pragma once
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
@@ -37,9 +35,9 @@ namespace WebCore {
// than creating the list statically as is currently the only option.
class DOMStringList : public RefCounted<DOMStringList> {
public:
- static PassRefPtr<DOMStringList> create()
+ static Ref<DOMStringList> create()
{
- return adoptRef(new DOMStringList());
+ return adoptRef(*new DOMStringList);
}
bool isEmpty() const { return m_strings.isEmpty(); }
@@ -61,6 +59,3 @@ private:
};
} // namespace WebCore
-
-#endif // DOMStringList_h
-