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

Unified Diff: Source/core/xml/parser/XMLDocumentParser.cpp

Issue 637483002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/xml (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/xml/parser/XMLDocumentParser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/parser/XMLDocumentParser.cpp
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
index bdeebff53c0283f1415e9ae6c1da133e06794366..e5cc2bde9aef458ae1ef42d94cbfcd5bab8f4499 100644
--- a/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -117,7 +117,7 @@ static inline bool hasNoStyleInformation(Document* document)
return true;
}
-class PendingStartElementNSCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingStartElementNSCallback final : public XMLDocumentParser::PendingCallback {
public:
PendingStartElementNSCallback(const AtomicString& localName, const AtomicString& prefix, const AtomicString& uri,
int namespaceCount, const xmlChar** namespaces, int attributeCount, int defaultedCount, const xmlChar** attributes)
@@ -154,7 +154,7 @@ public:
xmlFree(m_attributes);
}
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->startElementNs(m_localName, m_prefix, m_uri,
m_namespaceCount, const_cast<const xmlChar**>(m_namespaces),
@@ -172,15 +172,15 @@ private:
xmlChar** m_attributes;
};
-class PendingEndElementNSCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingEndElementNSCallback final : public XMLDocumentParser::PendingCallback {
public:
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->endElementNs();
}
};
-class PendingCharactersCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingCharactersCallback final : public XMLDocumentParser::PendingCallback {
public:
PendingCharactersCallback(const xmlChar* chars, int length)
: m_chars(xmlStrndup(chars, length))
@@ -193,7 +193,7 @@ public:
xmlFree(m_chars);
}
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->characters(m_chars, m_length);
}
@@ -203,7 +203,7 @@ private:
int m_length;
};
-class PendingProcessingInstructionCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingProcessingInstructionCallback final : public XMLDocumentParser::PendingCallback {
public:
PendingProcessingInstructionCallback(const String& target, const String& data)
: m_target(target)
@@ -211,7 +211,7 @@ public:
{
}
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->processingInstruction(m_target, m_data);
}
@@ -221,11 +221,11 @@ private:
String m_data;
};
-class PendingCDATABlockCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingCDATABlockCallback final : public XMLDocumentParser::PendingCallback {
public:
explicit PendingCDATABlockCallback(const String& text) : m_text(text) { }
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->cdataBlock(m_text);
}
@@ -234,11 +234,11 @@ private:
String m_text;
};
-class PendingCommentCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingCommentCallback final : public XMLDocumentParser::PendingCallback {
public:
explicit PendingCommentCallback(const String& text) : m_text(text) { }
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->comment(m_text);
}
@@ -247,7 +247,7 @@ private:
String m_text;
};
-class PendingInternalSubsetCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingInternalSubsetCallback final : public XMLDocumentParser::PendingCallback {
public:
PendingInternalSubsetCallback(const String& name, const String& externalID, const String& systemID)
: m_name(name)
@@ -256,7 +256,7 @@ public:
{
}
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->internalSubset(m_name, m_externalID, m_systemID);
}
@@ -267,7 +267,7 @@ private:
String m_systemID;
};
-class PendingErrorCallback FINAL : public XMLDocumentParser::PendingCallback {
+class PendingErrorCallback final : public XMLDocumentParser::PendingCallback {
public:
PendingErrorCallback(XMLErrors::ErrorType type, const xmlChar* message, OrdinalNumber lineNumber, OrdinalNumber columnNumber)
: m_type(type)
@@ -282,7 +282,7 @@ public:
xmlFree(m_message);
}
- virtual void call(XMLDocumentParser* parser) OVERRIDE
+ virtual void call(XMLDocumentParser* parser) override
{
parser->handleError(m_type, reinterpret_cast<char*>(m_message), TextPosition(m_lineNumber, m_columnNumber));
}
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698