]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.48
authorfred <fred>
Sun, 24 Mar 2002 20:06:42 +0000 (20:06 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:06:42 +0000 (20:06 +0000)
lib/moment.cc
lily/chord-iterator.cc
lily/score.cc

index d521b233d332f22901af89d5cd49713af1064bc7..ef1fa46defbb1b1b3d254ea3e4dec0ff22cc23c4 100644 (file)
 #include "string.hh"
 #include "moment.hh"
 
-void
-printm (Moment const &m)
-{
-    cout << String (m) << flush;
-}
-    
-
index 054990199fff85b35569a7294a439b0a2d9f7bd6..a21a7862cc56b1aa29d694b52d610864333b3e19 100644 (file)
@@ -74,10 +74,11 @@ IMPLEMENT_IS_TYPE_B1(Chord_iterator,Music_iterator);
 Moment
 Chord_iterator::next_moment() const
 {
-  Moment next_ = infinity_mom;
+  Moment next;
+  next.set_infinite (1);
   for (PCursor<Music_iterator*> i (children_p_list_.top()); i.ok (); i++)
-    next_ = next_ <? i->next_moment() ;
-  return next_;
+    next = next <? i->next_moment() ;
+  return next;
 }
 
 
index 5dac6960869f16ae5024ca9aefa9f694ae2d8c51..8e88f8ad36e89bc633c0d4a89aebc0e70d46dfcf 100644 (file)
@@ -74,7 +74,8 @@ Score::run_translator (Music_output_def *odef_l)
 
   while (iter->ok() || trans_p->moments_left_i ())
     {
-      Moment w = infinity_mom;
+      Moment w;
+      w.set_infinite (1);
       if (iter->ok())
        {
          w = iter->next_moment();