summaryrefslogtreecommitdiff
path: root/Source/WebCore/xml/XPathVariableReference.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/xml/XPathVariableReference.h')
-rw-r--r--Source/WebCore/xml/XPathVariableReference.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/WebCore/xml/XPathVariableReference.h b/Source/WebCore/xml/XPathVariableReference.h
index 042a18897..dc6e74edb 100644
--- a/Source/WebCore/xml/XPathVariableReference.h
+++ b/Source/WebCore/xml/XPathVariableReference.h
@@ -23,13 +23,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef XPathVariableReference_h
-#define XPathVariableReference_h
+#pragma once
#include "XPathExpressionNode.h"
namespace WebCore {
-
namespace XPath {
// Variable references are not used with XPathEvaluator.
@@ -37,12 +35,10 @@ namespace WebCore {
public:
explicit VariableReference(const String& name);
private:
- virtual Value evaluate() const;
- virtual Value::Type resultType() const { ASSERT_NOT_REACHED(); return Value::NumberValue; }
+ Value evaluate() const override;
+ Value::Type resultType() const override { ASSERT_NOT_REACHED(); return Value::NumberValue; }
String m_name;
};
- }
-}
-
-#endif // XPath_VariableReference_H
+ } // namespace XPath
+} // namespace WebCore