From d21b0a12f5e8dd30b01a922980740491862bbbf9 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:27:14 +0000 Subject: [PATCH] lilypond-0.0.21 --- hdr/molecule.hh | 3 +-- src/molecule.cc | 11 +++++------ 2 files changed, 6 insertions(+), 8 deletions(-) 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(); } -- 2.39.5