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

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: SkIntToMScalar Created 6 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
Index: ui/gfx/geometry/point.h
diff --git a/ui/gfx/geometry/point.h b/ui/gfx/geometry/point.h
index 63ee922ede985e41cad78dfafc4aeb3b5721c0ce..bedfb5c979c64ddae89cb41e0c75897188a00336 100644
--- a/ui/gfx/geometry/point.h
+++ b/ui/gfx/geometry/point.h
@@ -90,7 +90,7 @@ class GFX_EXPORT Point {
}
operator PointF() const {
- return PointF(x(), y());
+ return PointF(static_cast<float>(x()), static_cast<float>(y()));
}
// Returns a string representation of point.
« no previous file with comments | « ui/gfx/geometry/matrix3_f.cc ('k') | ui/gfx/geometry/rect.h » ('j') | ui/gfx/geometry/rect.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698