From c0d2633b8c96d357f26767e2e291b51b0fd752f6 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Thu, 23 Aug 2007 20:55:34 +0000 Subject: [PATCH] remove fake constness in CursorSlice git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19759 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CursorSlice.cpp | 8 +------- src/CursorSlice.h | 8 ++------ 2 files changed, 3 insertions(+), 13 deletions(-) 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 -- 2.39.5