summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewtab.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-03 21:08:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-05 21:18:01 +0200
commit6b95231a2c6f9ae6ec544f9281c4ddc6d665c9dc (patch)
tree0d04661abb20dde1eab177d587e704b15e3051cd /sw/source/uibase/uiview/viewtab.cxx
parentb1fba1afa1c1a5cf9074d2e9dd3e613ef0b318de (diff)
Improved loplugin:cstylecast to reference types: sw
Change-Id: I7206d3325b4bfedb852d559b68dc1678da524b41
Diffstat (limited to 'sw/source/uibase/uiview/viewtab.cxx')
-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 7eff56c3f7e0..698b994b5f46 100644
--- a/sw/source/uibase/uiview/viewtab.cxx
+++ b/sw/source/uibase/uiview/viewtab.cxx
@@ -1599,14 +1599,14 @@ void SwView::StateTabWin(SfxItemSet& rSet)
const SwFormatHeader& rHeaderFormat = rMaster.GetHeader();
SwFrameFormat *pHeaderFormat = const_cast<SwFrameFormat*>(rHeaderFormat.GetHeaderFormat());
if( pHeaderFormat )// #i80890# if rDesc is not the one belonging to the current page is might crash
- pBox = & (const SvxBoxItem&)pHeaderFormat->GetBox();
+ pBox = & pHeaderFormat->GetBox();
}
else if(nFrameType & FrameTypeFlags::FOOTER )
{
const SwFormatFooter& rFooterFormat = rMaster.GetFooter();
SwFrameFormat *pFooterFormat = const_cast<SwFrameFormat*>(rFooterFormat.GetFooterFormat());
if( pFooterFormat )// #i80890# if rDesc is not the one belonging to the current page is might crash
- pBox = & (const SvxBoxItem&)pFooterFormat->GetBox();
+ pBox = & pFooterFormat->GetBox();
}
if(pBox)
{