]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.C
minimal effort implementation of:
[lyx.git] / src / pariterator.C
index e8eb521638a88905dc3bf95df49fc2d94b5e989b..c3c86765ed3e3d3fe51293c3c5e9fbf85470671f 100644 (file)
@@ -78,7 +78,7 @@ ParIterator & ParIterator::operator--()
 
 Paragraph & ParIterator::operator*() const
 {
-       return text()->getPar(pit());
+       return const_cast<Paragraph&>(text()->getPar(pit()));
 }
 
 
@@ -90,7 +90,7 @@ pit_type ParIterator::pit() const
 
 Paragraph * ParIterator::operator->() const
 {
-       return &text()->getPar(pit());
+       return const_cast<Paragraph*>(&text()->getPar(pit()));
 }
 
 
@@ -102,7 +102,7 @@ pit_type ParIterator::outerPar() const
 
 ParagraphList & ParIterator::plist() const
 {
-       return text()->paragraphs();
+       return const_cast<ParagraphList&>(text()->paragraphs());
 }