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

Unified Diff: ui/gfx/size_base.h

Issue 10203004: no virtual destructor for point/size/rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added comment 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 | « ui/gfx/size.h ('k') | ui/gfx/size_f.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size_base.h
diff --git a/ui/gfx/size_base.h b/ui/gfx/size_base.h
index 590989ec8dd31ca566bba808ae9443302dc99b83..a4e494442fc1bdc3d678fade716c9315af3903b2 100644
--- a/ui/gfx/size_base.h
+++ b/ui/gfx/size_base.h
@@ -59,7 +59,9 @@ class UI_EXPORT SizeBase {
protected:
SizeBase(Type width, Type height);
- virtual ~SizeBase();
+ // Destructor is intentionally made non virtual and protected.
+ // Do not make this public.
+ ~SizeBase();
private:
Type width_;
« no previous file with comments | « ui/gfx/size.h ('k') | ui/gfx/size_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698