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

Unified Diff: lily/system-start-delimiter.cc

Issue 6109046: Macro for(UP_and_DOWN) and 3 similar. (issue 2491) (Closed) Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Patch Set: Corrected GNU style in for (*_and_* (d)) macros. Created 11 years, 11 months 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/system.cc ('k') | lily/tie.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/system-start-delimiter.cc
diff --git a/lily/system-start-delimiter.cc b/lily/system-start-delimiter.cc
index 7208a2622bcfc5dccdad051d6bee0866ecab0c86..d4b523c06c63b82094346bc1d13d08af83ae4a4a 100644
--- a/lily/system-start-delimiter.cc
+++ b/lily/system-start-delimiter.cc
@@ -47,10 +47,8 @@ System_start_delimiter::staff_bracket (Grob *me, Real height)
* (height / 2 + overlap));
Stencil bracket = Lookup::filled_box (box);
- Direction d = DOWN;
- do
+ for (DOWN_and_UP (d))
bracket.add_at_edge (Y_AXIS, d, tips[d], -overlap);
- while (flip (&d) != DOWN);
bracket = Stencil (box, bracket.expr ());
bracket.translate_axis (-0.8, X_AXIS);
« no previous file with comments | « lily/system.cc ('k') | lily/tie.cc » ('j') | no next file with comments »

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