From 4698eeea354b51d7efd6bb229898e86b3e3c0596 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 21 Jan 2015 14:00:43 +0100 Subject: SwSection::GetFmt const-correctness ...otherwise, wouldn't make sense to have non-const/const overloads anyway. Needs to introduce one const_cast into doctxm.cxx (which already contains quite a handful), otherwise the required changes would turn into too much of an avalanche. Change-Id: I694c7a1df7089d83ee95d35ed09bb864e9703f7c --- sw/inc/doc.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/inc/doc.hxx') diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 6efdfd49fe7d..f2fe7abbf447 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -991,14 +991,14 @@ public: SwTOXSearch eDir, bool bInReadOnly ); // Insert/Renew table/indes - const SwTOXBaseSection* InsertTableOf( const SwPosition& rPos, + SwTOXBaseSection* InsertTableOf( const SwPosition& rPos, const SwTOXBase& rTOX, const SfxItemSet* pSet = 0, bool bExpand = false ); const SwTOXBaseSection* InsertTableOf( sal_uLong nSttNd, sal_uLong nEndNd, const SwTOXBase& rTOX, const SfxItemSet* pSet = 0 ); - const SwTOXBase* GetCurTOX( const SwPosition& rPos ) const; + SwTOXBase* GetCurTOX( const SwPosition& rPos ); const SwAttrSet& GetTOXBaseAttrSet(const SwTOXBase& rTOX) const; bool DeleteTOX( const SwTOXBase& rTOXBase, bool bDelNodes = false ); -- cgit v1.2.3