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

Unified Diff: Source/bindings/core/v8/V8StringResource.h

Issue 638813002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/bindings (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
Index: Source/bindings/core/v8/V8StringResource.h
diff --git a/Source/bindings/core/v8/V8StringResource.h b/Source/bindings/core/v8/V8StringResource.h
index cc533c5ed475c1556f2d1430b323de9164f2e0d6..82dc79c9ce4a3c94ae1cab2d3c3ac810d29a7157 100644
--- a/Source/bindings/core/v8/V8StringResource.h
+++ b/Source/bindings/core/v8/V8StringResource.h
@@ -105,7 +105,7 @@ private:
#endif
};
-class WebCoreStringResource16 FINAL : public WebCoreStringResourceBase, public v8::String::ExternalStringResource {
+class WebCoreStringResource16 final : public WebCoreStringResourceBase, public v8::String::ExternalStringResource {
public:
explicit WebCoreStringResource16(const String& string)
: WebCoreStringResourceBase(string)
@@ -119,14 +119,14 @@ public:
ASSERT(!string.is8Bit());
}
- virtual size_t length() const OVERRIDE { return m_plainString.impl()->length(); }
- virtual const uint16_t* data() const OVERRIDE
+ virtual size_t length() const override { return m_plainString.impl()->length(); }
+ virtual const uint16_t* data() const override
{
return reinterpret_cast<const uint16_t*>(m_plainString.impl()->characters16());
}
};
-class WebCoreStringResource8 FINAL : public WebCoreStringResourceBase, public v8::String::ExternalAsciiStringResource {
+class WebCoreStringResource8 final : public WebCoreStringResourceBase, public v8::String::ExternalAsciiStringResource {
public:
explicit WebCoreStringResource8(const String& string)
: WebCoreStringResourceBase(string)
@@ -140,8 +140,8 @@ public:
ASSERT(string.is8Bit());
}
- virtual size_t length() const OVERRIDE { return m_plainString.impl()->length(); }
- virtual const char* data() const OVERRIDE
+ virtual size_t length() const override { return m_plainString.impl()->length(); }
+ virtual const char* data() const override
{
return reinterpret_cast<const char*>(m_plainString.impl()->characters8());
}
« no previous file with comments | « Source/bindings/core/v8/V8ScriptRunnerTest.cpp ('k') | Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698