]> git.lyx.org Git - features.git/commitdiff
remove fake constness in CursorSlice
authorAlfredo Braunstein <abraunst@lyx.org>
Thu, 23 Aug 2007 20:55:34 +0000 (20:55 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Thu, 23 Aug 2007 20:55:34 +0000 (20:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19759 a592a061-630c-0410-9148-cb99ea01b6c8

src/CursorSlice.cpp
src/CursorSlice.h

index 0ff99882ec0ceedd1e8f60ca435fc562dcf2893b..85db51a0d278d3746699d0b0dbc2b3624c180ef5 100644 (file)
@@ -50,13 +50,7 @@ MathData & CursorSlice::cell() const
 }
 
 
-Paragraph & CursorSlice::paragraph()
-{
-       return text()->getPar(pit_);
-}
-
-
-Paragraph const & CursorSlice::paragraph() const
+Paragraph & CursorSlice::paragraph() const
 {
        return text()->getPar(pit_);
 }
index 98d054dc4e23ea17c50e97202216212ed37e09d8..ba0b0e5974d5078a460ea1ac97bf06e888e181b4 100644 (file)
@@ -103,13 +103,9 @@ public:
        /// texted specific stuff
        ///
        /// returns text corresponding to this position
-       Text * text() { return inset_->getText(idx_); }
-       /// returns text corresponding to this position
-       Text const * text() const { return inset_->getText(idx_); }
-       /// paragraph in this cell
-       Paragraph & paragraph();
+       Text * text() const { return inset_->getText(idx_); }
        /// paragraph in this cell
-       Paragraph const & paragraph() const;
+       Paragraph & paragraph() const;
 
        ///
        /// mathed specific stuff