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

Unified Diff: lily/multi-measure-rest.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/lyric-hyphen.cc ('k') | lily/multi-measure-rest-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/multi-measure-rest.cc
diff --git a/lily/multi-measure-rest.cc b/lily/multi-measure-rest.cc
index 9ffaf4e18c03986b1852919ea893f652f6f9606f..c0f26f5c857c394f1db2de658594919de77e5414 100644
--- a/lily/multi-measure-rest.cc
+++ b/lily/multi-measure-rest.cc
@@ -42,8 +42,7 @@ Multi_measure_rest::bar_width (Spanner *me)
{
SCM spacing_pair = me->get_property ("spacing-pair");
Interval iv;
- Direction d = LEFT;
- do
+ for (LEFT_and_RIGHT (d))
{
Item *col = me->get_bound (d)->get_column ();
SCM align_sym
@@ -54,7 +53,6 @@ Multi_measure_rest::bar_width (Spanner *me)
iv[d] = coldim[-d];
}
- while (flip (&d) != LEFT);
return iv;
}
« no previous file with comments | « lily/lyric-hyphen.cc ('k') | lily/multi-measure-rest-engraver.cc » ('j') | no next file with comments »

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