- Buffer & tmp = const_cast<Buffer &>(buf);
- ParagraphList par = const_cast<ParagraphList&>(tmp.paragraphs());
- ParagraphList::iterator beg = par.begin();
- ParagraphList::iterator end = par.end();
- ParagraphList::iterator it = beg;
+ ParagraphList const par = buf.paragraphs();
+ ParagraphList::const_iterator beg = par.begin();
+ ParagraphList::const_iterator end = par.end();
+ ParagraphList::const_iterator it = beg;