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

Unified Diff: Source/platform/text/LineEnding.cpp

Issue 131003004: Update platform classes to use OVERRIDE / FINAL when needed (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/platform/testing/ArenaTestHelpers.h ('k') | Source/platform/transforms/IdentityTransformOperation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/LineEnding.cpp
diff --git a/Source/platform/text/LineEnding.cpp b/Source/platform/text/LineEnding.cpp
index 458ef8f41f4f2bf228687e7f5ea04d36e5e74601..e40701154624592a2ed9b861cf9ecbca244ab468 100644
--- a/Source/platform/text/LineEnding.cpp
+++ b/Source/platform/text/LineEnding.cpp
@@ -44,7 +44,7 @@ public:
virtual ~OutputBuffer() { }
};
-class CStringBuffer : public OutputBuffer {
+class CStringBuffer FINAL : public OutputBuffer {
public:
CStringBuffer(CString& buffer)
: m_buffer(buffer)
@@ -52,14 +52,14 @@ public:
}
virtual ~CStringBuffer() { }
- virtual char* allocate(size_t size)
+ virtual char* allocate(size_t size) OVERRIDE
{
char* ptr;
m_buffer = CString::newUninitialized(size, ptr);
return ptr;
}
- virtual void copy(const CString& source)
+ virtual void copy(const CString& source) OVERRIDE
{
m_buffer = source;
}
@@ -70,7 +70,7 @@ private:
CString m_buffer;
};
-class VectorCharAppendBuffer : public OutputBuffer {
+class VectorCharAppendBuffer FINAL : public OutputBuffer {
public:
VectorCharAppendBuffer(Vector<char>& buffer)
: m_buffer(buffer)
@@ -78,14 +78,14 @@ public:
}
virtual ~VectorCharAppendBuffer() { }
- virtual char* allocate(size_t size)
+ virtual char* allocate(size_t size) OVERRIDE
{
size_t oldSize = m_buffer.size();
m_buffer.grow(oldSize + size);
return m_buffer.data() + oldSize;
}
- virtual void copy(const CString& source)
+ virtual void copy(const CString& source) OVERRIDE
{
m_buffer.append(source.data(), source.length());
}
« no previous file with comments | « Source/platform/testing/ArenaTestHelpers.h ('k') | Source/platform/transforms/IdentityTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698