sw/source/core/undo/undel.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit da57afc4d5f7168addfad5f51d5905ff64adcf60 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Feb 23 16:41:09 2015 +0100 No need for bad SwFlyFrmFmt downcasts Change-Id: Ie70559f344018647cbb92fe542a2278056da20e4 diff --git a/sw/source/core/undo/undel.cxx b/sw/source/core/undo/undel.cxx index 14ec9dc..2477147 100644 --- a/sw/source/core/undo/undel.cxx +++ b/sw/source/core/undo/undel.cxx @@ -54,12 +54,10 @@ static void lcl_MakeAutoFrms( const SwFrmFmts& rSpzArr, sal_uLong nMovedIndex ) { if( !rSpzArr.empty() ) { - SwFlyFrmFmt* pFmt; - const SwFmtAnchor* pAnchor; for( size_t n = 0; n < rSpzArr.size(); ++n ) { - pFmt = static_cast<SwFlyFrmFmt*>(rSpzArr[n]); - pAnchor = &pFmt->GetAnchor(); + SwFrmFmt * pFmt = rSpzArr[n]; + const SwFmtAnchor* pAnchor = &pFmt->GetAnchor(); if (pAnchor->GetAnchorId() == FLY_AT_CHAR) { const SwPosition* pAPos = pAnchor->GetCntntAnchor(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits