summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/frmsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/frmsh.cxx')
-rw-r--r--sw/source/uibase/shells/frmsh.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx
index a486f9dfbf4d..e78ef356e430 100644
--- a/sw/source/uibase/shells/frmsh.cxx
+++ b/sw/source/uibase/shells/frmsh.cxx
@@ -534,7 +534,7 @@ void SwFrameShell::Execute(SfxRequest &rReq)
const SwFmtChain &rChain = pCurrFlyFmt->GetChain();
//needs cast - no non-const method available
SwFlyFrmFmt* pFlyFmt =
- (SwFlyFrmFmt*)rChain.GetPrev();
+ rChain.GetPrev();
if(pFlyFmt)
{
if (pFlyFmt->GetName() != sPrevName)
@@ -568,7 +568,7 @@ void SwFrameShell::Execute(SfxRequest &rReq)
const SwFmtChain &rChain = pCurrFlyFmt->GetChain();
//needs cast - no non-const method available
SwFlyFrmFmt* pFlyFmt =
- (SwFlyFrmFmt*)rChain.GetNext();
+ rChain.GetNext();
if(pFlyFmt)
{
if (pFlyFmt->GetName() != sNextName)