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

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

Issue 649203003: Type conversion fixes, ui/gfx/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile 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/point.h
diff --git a/ui/gfx/geometry/point.h b/ui/gfx/geometry/point.h
index c7ac4ff108de94000c328667a709aa61b2514282..f18339b116a06e04c582f10d7c22ec35ed5ed433 100644
--- a/ui/gfx/geometry/point.h
+++ b/ui/gfx/geometry/point.h
@@ -49,7 +49,7 @@ class GFX_EXPORT Point : public PointBase<Point, int, Vector2d> {
#endif
operator PointF() const {
- return PointF(x(), y());
+ return PointF(static_cast<float>(x()), static_cast<float>(y()));
}
// Returns a string representation of point.

Powered by Google App Engine
This is Rietveld 408576698