diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2019-10-04 18:07:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-05 09:10:05 +0200 |
commit | 85091c7bf5c3f2fcf409fd2691f227ca7f353945 (patch) | |
tree | a01330bf1a7af5685b0d1029b20c4ab0a9750332 /cui | |
parent | 191794ab56e561b86c5092ea9b23f4688bbb6ebb (diff) |
Convert SID_ENUM_PAGE_MODE to SfxUInt16Item
Change-Id: I5cffa31b45b7752ba3ff18c8a92da9766fcf8de6
Reviewed-on: https://gerrit.libreoffice.org/80241
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/page.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index 0cc4cf23651d..41e65c3c2b59 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -1519,7 +1519,7 @@ bool SvxPageDescPage::IsMarginOutOfRange() const void SvxPageDescPage::PageCreated(const SfxAllItemSet& aSet) { - const SfxAllEnumItem* pModeItem = aSet.GetItem<SfxAllEnumItem>(SID_ENUM_PAGE_MODE, false); + const SfxUInt16Item* pModeItem = aSet.GetItem(SID_ENUM_PAGE_MODE, false); const SfxAllEnumItem* pPaperStartItem = aSet.GetItem<SfxAllEnumItem>(SID_PAPER_START, false); const SfxAllEnumItem* pPaperEndItem = aSet.GetItem<SfxAllEnumItem>(SID_PAPER_END, false); const SfxStringListItem* pCollectListItem = aSet.GetItem<SfxStringListItem>(SID_COLLECT_LIST, false); @@ -1527,7 +1527,7 @@ void SvxPageDescPage::PageCreated(const SfxAllItemSet& aSet) if (pModeItem) { - eMode = static_cast<SvxModeType>(pModeItem->GetEnumValue()); + eMode = static_cast<SvxModeType>(pModeItem->GetValue()); } if(pPaperStartItem && pPaperEndItem) |