]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ottava-engraver.cc
Issue 2491: Macro for(UP_and_DOWN) and 3 similar.
[lilypond.git] / lily / ottava-engraver.cc
index aafae77401e461555bd3701b35dd022c274de3a3..bd39702bdb59da5c14ef516551455c8f9ce57673 100644 (file)
@@ -99,8 +99,7 @@ Ottava_spanner_engraver::typeset_all ()
 {
   if (finished_)
     {
-      Direction d = LEFT;
-      do
+      for (LEFT_and_RIGHT (d))
         {
           if (!finished_->get_bound (RIGHT))
             {
@@ -108,7 +107,6 @@ Ottava_spanner_engraver::typeset_all ()
               finished_->set_bound (d, e);
             }
         }
-      while (flip (&d) != LEFT);
 
       finished_ = 0;
     }