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

Unified Diff: ui/gfx/vector2d.h

Issue 11414284: Inline gfx::Vector2d* ctors and integer conversions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile 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/safe_integer_conversions.cc ('k') | ui/gfx/vector2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/vector2d.h
diff --git a/ui/gfx/vector2d.h b/ui/gfx/vector2d.h
index 418a98b24b9471cdc06ad8f7f30ba7a011015033..e22a7512c39cb402f7165eb268fdf805bed69fe0 100644
--- a/ui/gfx/vector2d.h
+++ b/ui/gfx/vector2d.h
@@ -20,8 +20,8 @@ namespace gfx {
class UI_EXPORT Vector2d {
public:
- Vector2d();
- Vector2d(int x, int y);
+ Vector2d() : x_(0), y_(0) {}
+ Vector2d(int x, int y) : x_(x), y_(y) {}
int x() const { return x_; }
void set_x(int x) { x_ = x; }
« no previous file with comments | « ui/gfx/safe_integer_conversions.cc ('k') | ui/gfx/vector2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698