diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2016-08-25 19:20:41 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2017-02-02 12:30:55 +0000 |
commit | 6882a04fb36642862b11efe514251d32070c3d65 (patch) | |
tree | b7959826000b061fd5ccc7512035c7478742f7b0 /Source/WebCore/xml/XPathExpression.h | |
parent | ab6df191029eeeb0b0f16f127d553265659f739e (diff) | |
download | qtwebkit-6882a04fb36642862b11efe514251d32070c3d65.tar.gz |
Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)
Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WebCore/xml/XPathExpression.h')
-rw-r--r-- | Source/WebCore/xml/XPathExpression.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/WebCore/xml/XPathExpression.h b/Source/WebCore/xml/XPathExpression.h index 3124939c6..90da675c5 100644 --- a/Source/WebCore/xml/XPathExpression.h +++ b/Source/WebCore/xml/XPathExpression.h @@ -1,6 +1,6 @@ /* * Copyright 2005 Frerich Raabe <raabe@kde.org> - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2006, 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,7 +29,6 @@ #include <wtf/Forward.h> #include <wtf/RefCounted.h> -#include <wtf/PassRefPtr.h> namespace WebCore { @@ -45,16 +44,15 @@ namespace WebCore { class XPathExpression : public RefCounted<XPathExpression> { public: - static PassRefPtr<XPathExpression> create() { return adoptRef(new XPathExpression); } + static RefPtr<XPathExpression> createExpression(const String& expression, XPathNSResolver*, ExceptionCode&); ~XPathExpression(); - static PassRefPtr<XPathExpression> createExpression(const String& expression, XPathNSResolver*, ExceptionCode&); - PassRefPtr<XPathResult> evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&); + RefPtr<XPathResult> evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&); private: - XPathExpression() { } + explicit XPathExpression(std::unique_ptr<XPath::Expression>); - XPath::Expression* m_topExpression; + std::unique_ptr<XPath::Expression> m_topExpression; }; } |