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

Unified Diff: ui/gfx/geometry/size.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/size.h
diff --git a/ui/gfx/geometry/size.h b/ui/gfx/geometry/size.h
index 10b90a5985ec0e35499b9b0dda39340bf6397780..bfe222311b01fc53e9b18cedd42f2d2eeb825793 100644
--- a/ui/gfx/geometry/size.h
+++ b/ui/gfx/geometry/size.h
@@ -45,7 +45,7 @@ class GFX_EXPORT Size : public SizeBase<Size, int> {
#endif
operator SizeF() const {
- return SizeF(width(), height());
+ return SizeF(static_cast<float>(width()), static_cast<float>(height()));
}
std::string ToString() const;

Powered by Google App Engine
This is Rietveld 408576698