summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-21 14:00:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-21 14:03:43 +0100
commit4698eeea354b51d7efd6bb229898e86b3e3c0596 (patch)
tree6b4d5a6c0706e417013524e8d078d2142ffb7a78 /sw/source/uibase/uiview
parentce67bc61da9e12987d57f764bc7c8376eea48bbe (diff)
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
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r--sw/source/uibase/uiview/viewtab.cxx4
1 files changed, 2 insertions, 2 deletions
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;