summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/frmedt/feshview.cxx5
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx7
2 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 27786a816da9..3fca3c3782b7 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1158,8 +1158,7 @@ bool SwFEShell::IsObjSelected( const SdrObject& rObj ) const
if ( IsFrameSelected() || !Imp()->HasDrawView() )
return false;
else
- return Imp()->GetDrawView()
- ->IsObjMarked( const_cast< SdrObject * >( &rObj ) );
+ return Imp()->GetDrawView()->IsObjMarked( &rObj );
}
bool SwFEShell::IsObjSameLevelWithMarked(const SdrObject* pObj) const
@@ -1425,7 +1424,7 @@ namespace
virtual bool includeObject( const SdrObject& i_rObject ) const override
{
- return m_pPV && m_pPV->GetView().IsObjMarkable( const_cast< SdrObject* >( &i_rObject ), m_pPV );
+ return m_pPV && m_pPV->GetView().IsObjMarkable( &i_rObject, m_pPV );
}
private:
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index d3575cbc1547..bfe720085d27 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1378,15 +1378,12 @@ SelectionType SwWrtShell::GetSelectionType() const
else if( GetDrawView()->GetContext() == SdrViewContext::Media )
nCnt |= SelectionType::Media;
- if (svx::checkForSelectedCustomShapes(
- const_cast<SdrView *>(GetDrawView()),
- true /* bOnlyExtruded */ ))
+ if (svx::checkForSelectedCustomShapes( GetDrawView(), true /* bOnlyExtruded */ ))
{
nCnt |= SelectionType::ExtrudedCustomShape;
}
sal_uInt32 nCheckStatus = 0;
- if (svx::checkForSelectedFontWork(
- const_cast<SdrView *>(GetDrawView()), nCheckStatus ))
+ if (svx::checkForSelectedFontWork( GetDrawView(), nCheckStatus ))
{
nCnt |= SelectionType::FontWork;
}