Kaydet (Commit) 213f12be authored tarafından Noel Grandin's avatar Noel Grandin

no need to expose m_pExampleSet as non-const

Change-Id: Ife6b4115a8aa48eba6f86ecf4eb66e3dc5e1830e
Reviewed-on: https://gerrit.libreoffice.org/53796Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 86968394
......@@ -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();
};
......
......@@ -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 ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment