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

Unified Diff: ui/gfx/rect_base.h

Issue 11414265: gfx: Inline the constructors and destructors for RectBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | ui/gfx/rect_base_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_base.h
diff --git a/ui/gfx/rect_base.h b/ui/gfx/rect_base.h
index 1be30400d6e91e9740bafb3d79e7df535bc40d3e..8ae2a64e5580d16c0fd389e20877b7ed4335a574 100644
--- a/ui/gfx/rect_base.h
+++ b/ui/gfx/rect_base.h
@@ -145,12 +145,15 @@ class UI_EXPORT RectBase {
bool SharesEdgeWith(const Class& rect) const;
protected:
- RectBase(const PointClass& origin, const SizeClass& size);
- explicit RectBase(const SizeClass& size);
- explicit RectBase(const PointClass& origin);
+ RectBase(const PointClass& origin, const SizeClass& size)
+ : origin_(origin), size_(size) {}
+ explicit RectBase(const SizeClass& size)
+ : size_(size) {}
+ explicit RectBase(const PointClass& origin)
+ : origin_(origin) {}
// Destructor is intentionally made non virtual and protected.
// Do not make this public.
- ~RectBase();
+ ~RectBase() {}
private:
PointClass origin_;
« no previous file with comments | « no previous file | ui/gfx/rect_base_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698