]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/chord-iterator.cc
release: 0.1.48
[lilypond.git] / lily / chord-iterator.cc
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;
 }