diff options
author | Łukasz Czerwiński <milimetr88@gmail.com> | 2012-04-30 13:11:48 +0200 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2012-04-30 13:15:19 +0200 |
commit | 1152d91a1c8ac90528660df7dfa6be2181f89c05 (patch) | |
tree | 3f124b6912dab5ec8b5e13ff9b4db375c53d8007 /lily/rod.cc | |
parent | a8841c7b9212700f2ebac56e0713afa78a8f0ca0 (diff) |
Issue 2491: Macro for(UP_and_DOWN) and 3 similar.
Replaces do{ ... } while(flip (&d) != DOWN/UP/... with a macro for(DOWN_and_UP/UP_and_DOWN/....) { }
Signed-off-by: David Kastrup <dak@gnu.org>
Diffstat (limited to 'lily/rod.cc')
-rw-r--r-- | lily/rod.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lily/rod.cc b/lily/rod.cc index d5eaa4de3f..f7b38397c5 100644 --- a/lily/rod.cc +++ b/lily/rod.cc @@ -37,14 +37,12 @@ Rod::columnize () || !item_drul_[RIGHT]) return; - Direction d = LEFT; - do + for (LEFT_and_RIGHT (d)) { Paper_column *pc = item_drul_[d]->get_column (); distance_ += -d * item_drul_[d]->relative_coordinate (pc, X_AXIS); item_drul_[d] = pc; } - while ((flip (&d)) != LEFT); } void |