diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-03 15:10:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-04 08:57:12 +0200 |
commit | 213f12be2cab2106dde4a0e859faaa8259627c1a (patch) | |
tree | c9e4c8041fb0073432964c37ea46803560b46079 | |
parent | 869683945a801e86590c165bc6f08832adb7ebb1 (diff) |
no need to expose m_pExampleSet as non-const
Change-Id: Ife6b4115a8aa48eba6f86ecf4eb66e3dc5e1830e
Reviewed-on: https://gerrit.libreoffice.org/53796
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/sfx2/tabdlg.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx index 9317380174a3..c3d6d6ec2cf6 100644 --- a/include/sfx2/tabdlg.hxx +++ b/include/sfx2/tabdlg.hxx @@ -210,7 +210,6 @@ public: void Start(); const SfxItemSet* GetExampleSet() const { return m_pExampleSet; } - SfxItemSet* GetExampleSet() { return m_pExampleSet; } void SetApplyHandler(const Link<Button*,void>& _rHdl); @@ -296,7 +295,6 @@ public: short execute(); const SfxItemSet* GetExampleSet() const { return m_pExampleSet; } - SfxItemSet* GetExampleSet() { return m_pExampleSet; } SAL_DLLPRIVATE void Start_Impl(); }; diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 017ca402dd89..f5d2ce07a86e 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -950,7 +950,7 @@ bool SfxDocumentPage::FillItemSet( SfxItemSet* rSet ) m_pUseUserDataCB->IsValueChangedFromSaved() && GetTabDialog() && GetTabDialog()->GetExampleSet() ) { - SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet(); + const SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet(); const SfxPoolItem* pItem; if ( pExpSet && SfxItemState::SET == pExpSet->GetItemState( SID_DOCINFO, true, &pItem ) ) @@ -965,7 +965,7 @@ bool SfxDocumentPage::FillItemSet( SfxItemSet* rSet ) if ( bHandleDelete ) { - SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet(); + const SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet(); const SfxPoolItem* pItem; if ( pExpSet && SfxItemState::SET == pExpSet->GetItemState( SID_DOCINFO, true, &pItem ) ) { @@ -987,7 +987,7 @@ bool SfxDocumentPage::FillItemSet( SfxItemSet* rSet ) if ( m_pUseThumbnailSaveCB->IsValueChangedFromSaved() && GetTabDialog() && GetTabDialog()->GetExampleSet() ) { - SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet(); + const SfxItemSet* pExpSet = GetTabDialog()->GetExampleSet(); const SfxPoolItem* pItem; if ( pExpSet && SfxItemState::SET == pExpSet->GetItemState( SID_DOCINFO, true, &pItem ) ) |