summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorEmircan Agac <thesadson@gmail.com>2021-08-13 16:46:29 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-08-14 08:36:45 +0200
commitd5eceef8e02886edc142267ee8d74f7adb198a1b (patch)
treeec7b354ba8dbf425c09d1a55258026ba079dd52a /desktop
parent1fdb3f98590532705be9972d031eb09027795760 (diff)
tdf#140226: use StaticWhichCast
Change-Id: I5eb25fdfd629e397582cd49e3fa4acab32c05bbb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120456 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 024a65c6c9b1..9ca61d6c0a4d 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -823,17 +823,17 @@ void ExecuteOrientationChange()
SfxViewFrame::Current()->GetBindings().GetDispatcher()->QueryState(SID_ATTR_PAGE_SIZE, pItem);
- pPageSizeItem.reset( static_cast<SvxSizeItem*>(pItem->Clone()) );
+ pPageSizeItem.reset(&pItem->Clone()->StaticWhichCast(SID_ATTR_PAGE_SIZE));
SfxViewFrame::Current()->GetBindings().GetDispatcher()->QueryState(SID_ATTR_PAGE_LRSPACE, pItem);
- pPageLRMarginItem.reset( static_cast<SvxLongLRSpaceItem*>(pItem->Clone()) );
+ pPageLRMarginItem.reset(&pItem->Clone()->StaticWhichCast(SID_ATTR_PAGE_LRSPACE));
SfxViewFrame::Current()->GetBindings().GetDispatcher()->QueryState(SID_ATTR_PAGE_ULSPACE, pItem);
- pPageULMarginItem.reset( static_cast<SvxLongULSpaceItem*>(pItem->Clone()) );
+ pPageULMarginItem.reset(&pItem->Clone()->StaticWhichCast(SID_ATTR_PAGE_ULSPACE));
{