diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-19 15:39:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-24 10:54:05 +0100 |
commit | 617a2feff0978d06aa2759038715dfde90d369db (patch) | |
tree | e7355f9dfe29c05db574a9961c6132f0c94d61a2 /sw/source/core/docnode/ndsect.cxx | |
parent | 6028b64e27dc45f20aa4a4e0adbef1c03e91a79b (diff) |
convert RES_FRM constants to TypedWhichId
Change-Id: I0c71a6fd2e094cebdb720e6c0661cd8a7bb8482c
Reviewed-on: https://gerrit.libreoffice.org/46812
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/docnode/ndsect.cxx')
-rw-r--r-- | sw/source/core/docnode/ndsect.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index e5d2d017c799..51c57c7d74ce 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -350,12 +350,10 @@ SwDoc::InsertSwSection(SwPaM const& rRange, SwSectionData & rNewData, bool bUpdateFootnote = false; if( GetFootnoteIdxs().size() && pAttr ) { - sal_uInt16 nVal = static_cast<const SwFormatFootnoteAtTextEnd&>(pAttr->Get( - RES_FTN_AT_TXTEND )).GetValue(); + sal_uInt16 nVal = pAttr->Get( RES_FTN_AT_TXTEND ).GetValue(); if( ( FTNEND_ATTXTEND_OWNNUMSEQ == nVal || FTNEND_ATTXTEND_OWNNUMANDFMT == nVal ) || - ( FTNEND_ATTXTEND_OWNNUMSEQ == ( nVal = static_cast<const SwFormatEndAtTextEnd&>( - pAttr->Get( RES_END_AT_TXTEND )).GetValue() ) || + ( FTNEND_ATTXTEND_OWNNUMSEQ == ( nVal = pAttr->Get( RES_END_AT_TXTEND ).GetValue() ) || FTNEND_ATTXTEND_OWNNUMANDFMT == nVal )) { bUpdateFootnote = true; |