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

Unified Diff: ui/gfx/size.h

Issue 11428076: Inline hot ctor/dtors for struct-like gfx:: geometry types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style issues 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 | « ui/gfx/rect_f.cc ('k') | ui/gfx/size.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size.h
diff --git a/ui/gfx/size.h b/ui/gfx/size.h
index edfc1fc9d2bd5f9d384d1cd799ba16c275cb1db8..f6152a3aa12f5ddc7af46eeaaed396283228d371 100644
--- a/ui/gfx/size.h
+++ b/ui/gfx/size.h
@@ -25,13 +25,13 @@ namespace gfx {
// A size has width and height values.
class UI_EXPORT Size : public SizeBase<Size, int> {
public:
- Size();
- Size(int width, int height);
+ Size() : SizeBase<Size, int>(0, 0) {}
+ Size(int width, int height) : SizeBase<Size, int>(width, height) {}
#if defined(OS_MACOSX)
explicit Size(const CGSize& s);
#endif
- ~Size();
+ ~Size() {}
#if defined(OS_MACOSX)
Size& operator=(const CGSize& s);
« no previous file with comments | « ui/gfx/rect_f.cc ('k') | ui/gfx/size.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698