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

Unified Diff: Source/platform/PODIntervalTree.h

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/PODArena.h ('k') | Source/platform/RefCountedSupplement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PODIntervalTree.h
diff --git a/Source/platform/PODIntervalTree.h b/Source/platform/PODIntervalTree.h
index c60ca5d7249d725accbd869b778cd645df1b887b..c3befb402759008886692d052656da514fc6fc45 100644
--- a/Source/platform/PODIntervalTree.h
+++ b/Source/platform/PODIntervalTree.h
@@ -70,7 +70,7 @@ private:
// supports efficient (O(lg n)) insertion, removal and querying of
// intervals in the tree.
template<class T, class UserData = void*>
-class PODIntervalTree : public PODRedBlackTree<PODInterval<T, UserData> > {
+class PODIntervalTree FINAL : public PODRedBlackTree<PODInterval<T, UserData> > {
WTF_MAKE_NONCOPYABLE(PODIntervalTree);
public:
// Typedef to reduce typing when declaring intervals to be stored in
@@ -131,7 +131,7 @@ public:
return IntervalType(low, high, data);
}
- virtual bool checkInvariants() const
+ virtual bool checkInvariants() const OVERRIDE
{
if (!PODRedBlackTree<IntervalType>::checkInvariants())
return false;
@@ -181,7 +181,7 @@ private:
searchForOverlapsFrom<AdapterType>(node->right(), adapter);
}
- virtual bool updateNode(IntervalNode* node)
+ virtual bool updateNode(IntervalNode* node) OVERRIDE
{
// Would use const T&, but need to reassign this reference in this
// function.
« no previous file with comments | « Source/platform/PODArena.h ('k') | Source/platform/RefCountedSupplement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698