[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Mon Feb 23 07:42:19 PST 2015
sw/source/core/undo/undel.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit da57afc4d5f7168addfad5f51d5905ff64adcf60
Author: Stephan Bergmann <sbergman at 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();
More information about the Libreoffice-commits
mailing list