Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: Source/core/dom/SelectorQuery.cpp

Issue 135833002: Add missing virtual keyword for methods with OVERRIDE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/MessagePort.h ('k') | Source/core/editing/CompositeEditCommand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/SelectorQuery.cpp
diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp
index a47be8845b080336a0179e67ca289ebfdbba98ae..9334ca52f0f986e2c164c37396d4cebb1c56e24e 100644
--- a/Source/core/dom/SelectorQuery.cpp
+++ b/Source/core/dom/SelectorQuery.cpp
@@ -49,9 +49,9 @@ class SingleNodeList FINAL : public SimpleNodeList {
public:
explicit SingleNodeList(Node* rootNode) : m_currentNode(rootNode) { }
- bool isEmpty() const OVERRIDE { return !m_currentNode; }
+ virtual bool isEmpty() const OVERRIDE { return !m_currentNode; }
- Node* next() OVERRIDE
+ virtual Node* next() OVERRIDE
{
Node* current = m_currentNode;
m_currentNode = 0;
@@ -69,9 +69,9 @@ public:
, m_rootNode(rootNode)
, m_currentElement(nextInternal(ElementTraversal::firstWithin(m_rootNode))) { }
- bool isEmpty() const OVERRIDE { return !m_currentElement; }
+ virtual bool isEmpty() const OVERRIDE { return !m_currentElement; }
- Node* next() OVERRIDE
+ virtual Node* next() OVERRIDE
{
Node* current = m_currentElement;
ASSERT(current);
@@ -101,9 +101,9 @@ public:
, m_rootNode(rootNode)
, m_currentElement(nextInternal(ElementTraversal::firstWithin(rootNode))) { }
- bool isEmpty() const OVERRIDE { return !m_currentElement; }
+ virtual bool isEmpty() const OVERRIDE { return !m_currentElement; }
- Node* next() OVERRIDE
+ virtual Node* next() OVERRIDE
{
Node* current = m_currentElement;
ASSERT(current);
« no previous file with comments | « Source/core/dom/MessagePort.h ('k') | Source/core/editing/CompositeEditCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698