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

Unified Diff: lily/constrained-breaking.cc

Issue 549480043: Run scripts/auxiliar/fixcc.py (Closed)
Patch Set: Created 5 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/concurrent-hairpin-engraver.cc ('k') | lily/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/constrained-breaking.cc
diff --git a/lily/constrained-breaking.cc b/lily/constrained-breaking.cc
index eba3b76390d6a83ff1ab607c31234d1a1c28bf93..fb5929ebbd23c2f9e24d8c33ec85dea41084a085 100644
--- a/lily/constrained-breaking.cc
+++ b/lily/constrained-breaking.cc
@@ -206,10 +206,11 @@ Constrained_breaking::solve (vsize start, vsize end, vsize sys_count)
}
}
/* if we get to here, just put everything on one line */
- if (sys_count > 0) {
- warning (_ ("cannot find line breaking that satisfies constraints"));
- ret.push_back (space_line (0, end_brk));
- }
+ if (sys_count > 0)
+ {
+ warning (_ ("cannot find line breaking that satisfies constraints"));
+ ret.push_back (space_line (0, end_brk));
+ }
return ret;
}
@@ -297,11 +298,12 @@ Constrained_breaking::line_details (vsize start, vsize end, vsize sys_count)
}
/* if we get to here, just put everything on one line */
- if (sys_count > 0) {
- Line_details details;
- fill_line_details (&details, 0, end_brk);
- ret.push_back (details);
- }
+ if (sys_count > 0)
+ {
+ Line_details details;
+ fill_line_details (&details, 0, end_brk);
+ ret.push_back (details);
+ }
return ret;
}
@@ -581,7 +583,7 @@ Line_details::Line_details (Prob *pb, Output_def *paper)
force_ = 0;
Stencil *st = unsmob<Stencil> (pb->get_property ("stencil"));
Interval stencil_extent = st->is_empty (Y_AXIS) ? Interval (0, 0)
- : st->extent (Y_AXIS);
+ : st->extent (Y_AXIS);
shape_ = Line_shape (stencil_extent, stencil_extent); // pretend it goes all the way across
tallness_ = 0;
bottom_padding_ = 0;
« no previous file with comments | « lily/concurrent-hairpin-engraver.cc ('k') | lily/context.cc » ('j') | no next file with comments »

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