summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/pgfnote.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-19 15:39:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-24 10:54:05 +0100
commit617a2feff0978d06aa2759038715dfde90d369db (patch)
treee7355f9dfe29c05db574a9961c6132f0c94d61a2 /sw/source/ui/misc/pgfnote.cxx
parent6028b64e27dc45f20aa4a4e0adbef1c03e91a79b (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/ui/misc/pgfnote.cxx')
-rw-r--r--sw/source/ui/misc/pgfnote.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/misc/pgfnote.cxx b/sw/source/ui/misc/pgfnote.cxx
index 1de19dfc3340..3da76ea63a5b 100644
--- a/sw/source/ui/misc/pgfnote.cxx
+++ b/sw/source/ui/misc/pgfnote.cxx
@@ -281,7 +281,7 @@ bool SwFootNotePage::FillItemSet(SfxItemSet *rSet)
void SwFootNotePage::ActivatePage(const SfxItemSet& rSet)
{
- auto const & rSize = static_cast<SwFormatFrameSize const &>(rSet.Get( RES_FRM_SIZE ));
+ auto const & rSize = rSet.Get( RES_FRM_SIZE );
lMaxHeight = rSize.GetHeight();
const SfxPoolItem* pItem;
@@ -315,7 +315,7 @@ void SwFootNotePage::ActivatePage(const SfxItemSet& rSet)
if ( rSet.GetItemState( RES_UL_SPACE , false ) == SfxItemState::SET )
{
- const SvxULSpaceItem &rUL = static_cast<const SvxULSpaceItem&>(rSet.Get( RES_UL_SPACE ));
+ const SvxULSpaceItem &rUL = rSet.Get( RES_UL_SPACE );
lMaxHeight -= rUL.GetUpper() + rUL.GetLower();
}