summaryrefslogtreecommitdiff
path: root/sw/source/core/frmedt/fecopy.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/frmedt/fecopy.cxx')
-rw-r--r--sw/source/core/frmedt/fecopy.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx
index 16a42d8a168b..ca20591a9a61 100644
--- a/sw/source/core/frmedt/fecopy.cxx
+++ b/sw/source/core/frmedt/fecopy.cxx
@@ -1389,8 +1389,8 @@ void SwFEShell::Paste( SvStream& rStrm, SwPasteSdr nAction, const Point* pPt )
} while( pTmp->IsFollow() );
pAnchor = pTmp;
}
- if( dynamic_cast<const SdrCaptionObj*>( pOldObj) != nullptr)
- aNullPt = static_cast<SdrCaptionObj*>(pOldObj)->GetTailPos();
+ if( auto pCaptionObj = dynamic_cast<SdrCaptionObj*>( pOldObj))
+ aNullPt = pCaptionObj->GetTailPos();
else
aNullPt = aOldObjRect.TopLeft();