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

Unified Diff: ui/gfx/geometry/vector2d.h

Issue 649203003: Type conversion fixes, ui/gfx/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 6 years, 2 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
Index: ui/gfx/geometry/vector2d.h
diff --git a/ui/gfx/geometry/vector2d.h b/ui/gfx/geometry/vector2d.h
index 4e404be1a7e2007702ec5a11e1358922bfa05f8d..86215d893e411aa465b913440a67874fd8fb25bb 100644
--- a/ui/gfx/geometry/vector2d.h
+++ b/ui/gfx/geometry/vector2d.h
@@ -60,7 +60,9 @@ class GFX_EXPORT Vector2d {
std::string ToString() const;
- operator Vector2dF() const { return Vector2dF(x_, y_); }
+ operator Vector2dF() const {
+ return Vector2dF(static_cast<float>(x()), static_cast<float>(y()));
+ }
private:
int x_;

Powered by Google App Engine
This is Rietveld 408576698