using std::endl;
-//we could be able to get rid of this if only every BufferView were
-//associated to a buffer on construction
-DocIterator::DocIterator() : inset_(0)
+// We could be able to get rid of this if only every BufferView were
+// associated to a buffer on construction.
+DocIterator::DocIterator()
+ : inset_(0)
+{}
+
+
+DocIterator::DocIterator(InsetBase & inset)
+ : inset_(&inset)
{}
}
-DocIterator::DocIterator(InsetBase & inset) : inset_(&inset)
-{}
-
-
InsetBase * DocIterator::nextInset()
{
BOOST_ASSERT(!empty());
MathAtom const & DocIterator::nextAtom() const
{
BOOST_ASSERT(!empty());
- lyxerr << "lastpos: " << lastpos() << " next atom:\n" << *this << endl;
+ //lyxerr << "lastpos: " << lastpos() << " next atom:\n" << *this << endl;
BOOST_ASSERT(pos() < lastpos());
return cell()[pos()];
}
MathAtom & DocIterator::nextAtom()
{
BOOST_ASSERT(!empty());
- lyxerr << "lastpos: " << lastpos() << " next atom:\n" << *this << endl;
+ //lyxerr << "lastpos: " << lastpos() << " next atom:\n" << *this << endl;
BOOST_ASSERT(pos() < lastpos());
return cell()[pos()];
}