From: Alfredo Braunstein Date: Thu, 23 Aug 2007 20:55:34 +0000 (+0000) Subject: remove fake constness in CursorSlice X-Git-Tag: 1.6.10~8727 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c0d2633b8c96d357f26767e2e291b51b0fd752f6;p=features.git remove fake constness in CursorSlice git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19759 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/CursorSlice.cpp b/src/CursorSlice.cpp index 0ff99882ec..85db51a0d2 100644 --- a/src/CursorSlice.cpp +++ b/src/CursorSlice.cpp @@ -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_); } diff --git a/src/CursorSlice.h b/src/CursorSlice.h index 98d054dc4e..ba0b0e5974 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -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