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

Unified Diff: ui/gfx/point_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/point.h ('k') | ui/gfx/point_f.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/point_base.h
diff --git a/ui/gfx/point_base.h b/ui/gfx/point_base.h
index 1568c5235a642a2119703fcbaac7372baaa63361..32735b9ec7af1547d5c71acfa3b7bb7284a3686e 100644
--- a/ui/gfx/point_base.h
+++ b/ui/gfx/point_base.h
@@ -80,7 +80,9 @@ class UI_EXPORT PointBase {
protected:
PointBase(Type x, Type y) : x_(x), y_(y) {}
- virtual ~PointBase() {}
+ // Destructor is intentionally made non virtual and protected.
+ // Do not make this public.
+ ~PointBase() {}
private:
Type x_;
« no previous file with comments | « ui/gfx/point.h ('k') | ui/gfx/point_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698