From: fred Date: Sun, 24 Mar 2002 19:27:14 +0000 (+0000) Subject: lilypond-0.0.21 X-Git-Tag: release/1.5.59~5649 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d21b0a12f5e8dd30b01a922980740491862bbbf9;p=lilypond.git lilypond-0.0.21 --- diff --git a/hdr/molecule.hh b/hdr/molecule.hh index b5df9ee383..7419e203de 100644 --- a/hdr/molecule.hh +++ b/hdr/molecule.hh @@ -3,7 +3,6 @@ #include "plist.hh" #include "boxes.hh" -#include "item.hh" #include "symbol.hh" /// a symbol which can be translated, and freely copied @@ -28,7 +27,7 @@ struct Atom { /// a group of #Atom#s struct Molecule { - IPointerList ats; + IPointerList ats; // change to List? /****************/ diff --git a/src/molecule.cc b/src/molecule.cc index 68b8791c18..6b9db4cac3 100644 --- a/src/molecule.cc +++ b/src/molecule.cc @@ -1,4 +1,3 @@ -#include "glob.hh" #include "vray.hh" #include "interval.hh" #include "dimen.hh" @@ -46,7 +45,7 @@ String Molecule::TeXstring() const { String s; - for(PCursor c(ats); c.ok(); c++) + for(iter_top(ats,c); c.ok(); c++) s+=c->TeXstring(); return s; } @@ -55,7 +54,7 @@ Box Molecule::extent() const { Box b; - for(PCursor c(ats); c.ok(); c++) + for(iter_top(ats,c); c.ok(); c++) b.unite(c->extent()); return b; } @@ -63,14 +62,14 @@ Molecule::extent() const void Molecule::translate(Offset o) { - for (PCursor c(ats); c.ok(); c++) + for (iter_top(ats,c); c.ok(); c++) c->translate(o); } void Molecule::add(const Molecule &m) { - for (PCursor c(m.ats); c.ok(); c++) { + for (iter_top(m.ats,c); c.ok(); c++) { add(**c); } } @@ -142,6 +141,6 @@ Molecule::Molecule(const Molecule&s) void Molecule::print() const { - for (PCursor c(ats); c.ok(); c++) + for (iter_top(ats,c); c.ok(); c++) c->print(); }