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

Unified Diff: minidump/minidump_writable.h

Issue 674153002: minidump: Change the ownership model (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback 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 | « minidump/minidump_thread_writer_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_writable.h
diff --git a/minidump/minidump_writable.h b/minidump/minidump_writable.h
index ccace8c863c714e329f0da2ab0bee4623aa7ba83..cfababf95ab105f6b4657d3aa887da828650a0a1 100644
--- a/minidump/minidump_writable.h
+++ b/minidump/minidump_writable.h
@@ -133,7 +133,13 @@ class MinidumpWritable {
static const size_t kInvalidSize;
MinidumpWritable();
- ~MinidumpWritable();
+
+ // This doesn’t really need to be virtual because nothing ever deletes a
+ // MinidumpWritable* through an interface pointer with that type, and this is
+ // guaranteed by being protected. Regardless, the style guide is somewhat
+ // insistent.
+ // http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Inheritance
+ virtual ~MinidumpWritable();
//! \brief The state of the object.
State state() const { return state_; }
« no previous file with comments | « minidump/minidump_thread_writer_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698