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/source/uibase/uiview/viewtab.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/uibase/uiview') diff --git a/sw/source/uibase/uiview/viewtab.cxx b/sw/source/uibase/uiview/viewtab.cxx index 76b386a72096..3e86e3b0d317 100644 --- a/sw/source/uibase/uiview/viewtab.cxx +++ b/sw/source/uibase/uiview/viewtab.cxx @@ -862,7 +862,7 @@ void SwView::ExecTabWin( SfxRequest& rReq ) SfxItemSet aSet( GetPool(), RES_COL, RES_COL ); if(bSect) { - const SwSection *pSect = rSh.GetAnySection(); + SwSection *pSect = rSh.GetAnySection(); OSL_ENSURE( pSect, "Which section?"); pSectFmt = pSect->GetFmt(); } @@ -1561,7 +1561,7 @@ void SwView::StateTabWin(SfxItemSet& rSet) OSL_ENSURE( pSect, "Which section?"); if( pSect ) { - SwSectionFmt *pFmt = pSect->GetFmt(); + SwSectionFmt const *pFmt = pSect->GetFmt(); const SwFmtCol& rCol = pFmt->GetCol(); if(rSh.IsInRightToLeftText()) nNum = rCol.GetColumns().size() - nNum; -- cgit