]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/request-iterator.cc
release: 0.1.24
[lilypond.git] / lily / request-iterator.cc
index f9cf8f0046289573330c1c007ac904cea562c5f0..3d833b94d1d1ab49562da5a7f6ad19c03c35b82e 100644 (file)
@@ -24,7 +24,7 @@ Request_chord_iterator::Request_chord_iterator (Request_chord*el_l)
 {
   elt_l_ = el_l;
   MInterval elt_dur =el_l->time_int();
-  elt_duration_ = elt_dur.length (); 
+  elt_duration_ = elt_dur.length ();
   last_b_ = false;
 }
 
@@ -32,7 +32,7 @@ Request_chord_iterator::Request_chord_iterator (Request_chord*el_l)
 bool
 Request_chord_iterator::ok() const
 {
-  return (elt_duration_ && !last_b_) || first_b_; 
+  return (elt_duration_ && !last_b_) || first_b_;
 }
 
 
@@ -41,7 +41,7 @@ Moment
 Request_chord_iterator::next_moment() const
 {
   Moment m (0);
-  if  (!first_b_) 
+  if  (!first_b_)
     m = elt_duration_;
   return m;
 }
@@ -56,20 +56,20 @@ Request_chord_iterator::do_print() const
 void
 Request_chord_iterator::process_and_next (Moment mom)
 {
-  if (first_b_) 
+  if (first_b_)
     {
-      for (PCursor<Music*> i (elt_l_->music_p_list_); i.ok(); i++) 
+      for (PCursor<Music*> i (elt_l_->music_p_list_); i.ok(); i++)
        {
          assert (i->is_type_b (Request::static_name()));
          Request * req_l = (Request*)i.ptr();
          bool gotcha = report_to_l()->try_request (req_l);
          if (!gotcha)
-           req_l->warning ("Junking request: " + String (req_l->name()));
+           req_l->warning (_("Junking request: ") + String (req_l->name()));
 
        }
       first_b_ = false;
     }
 
   if (mom >= elt_duration_)
-    last_b_ = true;  
+    last_b_ = true;
 }