]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/auto-change-iterator.cc
* lily/align-interface.cc (align_elements_to_extents): warn if
[lilypond.git] / lily / auto-change-iterator.cc
index 1fb472a1b5a45905c1201166455c2fdec307c12f..1d07d6a7de8c076b6b09bc992f4269466f461c52 100644 (file)
@@ -29,9 +29,8 @@ private:
   void change_to (Music_iterator *, SCM, String);
   Moment start_moment_;
 
-  Interpretation_context_handle up_;
-  Interpretation_context_handle down_;
-
+  Context_handle up_;
+  Context_handle down_;
 };
 
 void
@@ -60,7 +59,7 @@ Auto_change_iterator::change_to (Music_iterator *it, SCM to_type_sym,
   if (current && current->id_string () == to_id)
     {
       String msg;
-      msg += _ ("Can't switch translators, I'm there already");
+      msg += _f ("can't change, already in translator: %s", to_id);
     }
 
   if (current)
@@ -80,7 +79,6 @@ Auto_change_iterator::change_to (Music_iterator *it, SCM to_type_sym,
        */
       }
   else;
-
 }
 
 void
@@ -138,7 +136,6 @@ Auto_change_iterator::construct_children ()
                                            "", SCM_EOL);
   set_context (voice);
   Music_wrapper_iterator::construct_children ();
-
 }
 
 void
@@ -146,6 +143,6 @@ Auto_change_iterator::do_quit ()
 {
   up_.set_context (0);
   down_.set_context (0);
-
 }
+
 IMPLEMENT_CTOR_CALLBACK (Auto_change_iterator);