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

Unified Diff: base/memory/linked_ptr_unittest.cc

Issue 10004001: Add virtual and OVERRIDE to base/ implementation files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win Fix -> Missing header Created 8 years, 8 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 | « base/lazy_instance_unittest.cc ('k') | base/memory/scoped_ptr_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/linked_ptr_unittest.cc
diff --git a/base/memory/linked_ptr_unittest.cc b/base/memory/linked_ptr_unittest.cc
index ae10fc28dea784b5f6e3b47590cc399c181ea217..e6a48bc3e65095340e435ad7adc3daad0b69fe61 100644
--- a/base/memory/linked_ptr_unittest.cc
+++ b/base/memory/linked_ptr_unittest.cc
@@ -25,8 +25,10 @@ struct A {
// Subclass
struct B: public A {
B() { history += base::StringPrintf("B%d ctor\n", mynum); }
- ~B() { history += base::StringPrintf("B%d dtor\n", mynum); }
- virtual void Use() { history += base::StringPrintf("B%d use\n", mynum); }
+ virtual ~B() { history += base::StringPrintf("B%d dtor\n", mynum); }
+ virtual void Use() OVERRIDE {
+ history += base::StringPrintf("B%d use\n", mynum);
+ }
};
} // namespace
« no previous file with comments | « base/lazy_instance_unittest.cc ('k') | base/memory/scoped_ptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698