[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Fri Aug 22 08:04:03 PDT 2014
sw/source/core/doc/ftnidx.cxx | 2 +-
sw/source/filter/ww8/ww8atr.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 53ce805b436d65f35c815ca5355aa5e7dd579e64
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Aug 22 17:01:51 2014 +0200
Avoid unnecessary invalid downcasts
...to SwFmtFtnAtTxtEnd instead of SwFmtEndAtTxtEnd, both derived from
SwFmtFtnEndAtTxtEnd
Change-Id: I4b909f136268058bedeacd6b47d3f4cd88522ad5
diff --git a/sw/source/core/doc/ftnidx.cxx b/sw/source/core/doc/ftnidx.cxx
index 8858cfa..c0b57cd 100644
--- a/sw/source/core/doc/ftnidx.cxx
+++ b/sw/source/core/doc/ftnidx.cxx
@@ -283,7 +283,7 @@ const SwSectionNode* SwUpdFtnEndNtAtEnd::FindSectNdWithEndAttr(
sal_uInt16 nVal;
const SwSectionNode* pNd = rTxtFtn.GetTxtNode().FindSectionNode();
while( pNd && FTNEND_ATTXTEND_OWNNUMSEQ != ( nVal =
- ((const SwFmtFtnAtTxtEnd&)pNd->GetSection().GetFmt()->
+ ((const SwFmtFtnEndAtTxtEnd&)pNd->GetSection().GetFmt()->
GetFmtAttr( nWh, true )).GetValue() ) &&
FTNEND_ATTXTEND_OWNNUMANDFMT != nVal )
pNd = pNd->StartOfSectionNode()->FindSectionNode();
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 8813399..5e8de51 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -3340,7 +3340,7 @@ static bool lcl_IsAtTxtEnd(const SwFmtFtn& rFtn)
const SwSectionNode* pSectNd = rFtn.GetTxtFtn()->GetTxtNode().
FindSectionNode();
while( pSectNd && FTNEND_ATPGORDOCEND ==
- ((const SwFmtFtnAtTxtEnd&)pSectNd->GetSection().GetFmt()->
+ ((const SwFmtFtnEndAtTxtEnd&)pSectNd->GetSection().GetFmt()->
GetFmtAttr( nWh, true)).GetValue() )
pSectNd = pSectNd->StartOfSectionNode()->FindSectionNode();
More information about the Libreoffice-commits
mailing list