summaryrefslogtreecommitdiff
path: root/Source/WebCore/xml/XPathStep.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/xml/XPathStep.h')
-rw-r--r--Source/WebCore/xml/XPathStep.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/Source/WebCore/xml/XPathStep.h b/Source/WebCore/xml/XPathStep.h
index c91613183..d2ef5bb00 100644
--- a/Source/WebCore/xml/XPathStep.h
+++ b/Source/WebCore/xml/XPathStep.h
@@ -24,8 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef XPathStep_h
-#define XPathStep_h
+#pragma once
#include <wtf/Vector.h>
#include <wtf/text/AtomicString.h>
@@ -65,17 +64,17 @@ public:
NodeTest(NodeTest&& other)
: m_kind(other.m_kind)
- , m_data(std::move(other.m_data))
- , m_namespaceURI(std::move(other.m_namespaceURI))
- , m_mergedPredicates(std::move(other.m_mergedPredicates))
+ , m_data(WTFMove(other.m_data))
+ , m_namespaceURI(WTFMove(other.m_namespaceURI))
+ , m_mergedPredicates(WTFMove(other.m_mergedPredicates))
{
}
NodeTest& operator=(NodeTest&& other)
{
m_kind = other.m_kind;
- m_data = std::move(other.m_data);
- m_namespaceURI = std::move(other.m_namespaceURI);
- m_mergedPredicates = std::move(other.m_mergedPredicates);
+ m_data = WTFMove(other.m_data);
+ m_namespaceURI = WTFMove(other.m_namespaceURI);
+ m_mergedPredicates = WTFMove(other.m_mergedPredicates);
return *this;
}
#endif
@@ -118,7 +117,4 @@ private:
void optimizeStepPair(Step&, Step&, bool& dropSecondStep);
} // namespace XPath
-
} // namespace WebCore
-
-#endif // XPathStep_h