Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1227)

Unified Diff: lily/freetype.cc

Issue 547560044: Cast to Real in C++ style throughout (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/bracket.cc ('k') | lily/midi-walker.cc » ('j') | lily/spring.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/freetype.cc
diff --git a/lily/freetype.cc b/lily/freetype.cc
index 339c42128450bfdf569b5ff9b01507e8ceed3abb..2c4258960d887393e5ffb5f3a15b62e968b6f34a 100644
--- a/lily/freetype.cc
+++ b/lily/freetype.cc
@@ -44,8 +44,9 @@ ly_FT_get_unscaled_indexed_char_dimensions (FT_Face const &face, size_t signed_i
FT_Pos vb = m.horiBearingY;
// is this viable for all grobs?
- return Box (Interval (Real (hb), Real (hb + m.width)),
- Interval (Real (vb - m.height), Real (vb)));
+ return Box (
+ Interval (static_cast<Real> (hb), static_cast<Real> (hb + m.width)),
+ Interval (static_cast<Real> (vb - m.height), static_cast<Real> (vb)));
}
SCM
« no previous file with comments | « lily/bracket.cc ('k') | lily/midi-walker.cc » ('j') | lily/spring.cc » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b