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

Unified Diff: ui/gfx/vector2d_f.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/vector2d.cc ('k') | ui/gfx/vector2d_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/vector2d_f.h
diff --git a/ui/gfx/vector2d_f.h b/ui/gfx/vector2d_f.h
index 78c2318f29fd5ffb13b57b3410f85a052707ed8f..72e1b00b86c6af36592f7ecb858ee2578eee53bd 100644
--- a/ui/gfx/vector2d_f.h
+++ b/ui/gfx/vector2d_f.h
@@ -18,8 +18,8 @@ namespace gfx {
class UI_EXPORT Vector2dF {
public:
- Vector2dF();
- Vector2dF(float x, float y);
+ Vector2dF() : x_(0), y_(0) {}
+ Vector2dF(float x, float y) : x_(x), y_(y) {}
float x() const { return x_; }
void set_x(float x) { x_ = x; }
« no previous file with comments | « ui/gfx/vector2d.cc ('k') | ui/gfx/vector2d_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698