summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-10-19 07:18:39 +0200
committerJan Holesovsky <kendy@collabora.com>2015-10-19 07:20:33 +0200
commit2b5a48da5969b1ed37f4480d843714d434feb5d9 (patch)
tree59a449af7f69a133bc8e1e76b8f9deb65425da02 /sfx2
parent664197d95becd516c3dac25a50439078ba61e051 (diff)
sfx items: Kill the SFX_ITEMSET_GET macro.
Change-Id: I110a4f25646eb3f0fa93673c84dc67cf64a3b7a0
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objserv.cxx2
-rw-r--r--sfx2/source/doc/objstor.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 1e7164aa0d19..f263356b92d1 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -895,7 +895,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
GetMedium()->SetUpdatePickList( false );
else if ( rReq.GetArgs() )
{
- SFX_ITEMSET_GET( *rReq.GetArgs(), pPicklistItem, SfxBoolItem, SID_PICKLIST, false );
+ const SfxBoolItem* pPicklistItem = rReq.GetArgs()->GetItem<SfxBoolItem>(SID_PICKLIST, false);
if ( pPicklistItem )
GetMedium()->SetUpdatePickList( pPicklistItem->GetValue() );
}
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 5e39ce7ab79b..e97bd2e083cb 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2713,15 +2713,15 @@ bool SfxObjectShell::CommonSaveAs_Impl
pSet->ClearItem( SID_DEFAULTFILEPATH );
pSet->ClearItem( SID_DEFAULTFILENAME );
- SFX_ITEMSET_GET( (*aParams), pFilterItem, SfxStringItem, SID_FILTER_NAME, false );
+ const SfxStringItem* pFilterItem = aParams->GetItem<SfxStringItem>(SID_FILTER_NAME, false);
if ( pFilterItem )
pSet->Put( *pFilterItem );
- SFX_ITEMSET_GET( (*aParams), pOptionsItem, SfxStringItem, SID_OPTIONS, false );
+ const SfxStringItem* pOptionsItem = aParams->GetItem<SfxStringItem>(SID_OPTIONS, false);
if ( pOptionsItem )
pSet->Put( *pOptionsItem );
- SFX_ITEMSET_GET( (*aParams), pFilterOptItem, SfxStringItem, SID_FILE_FILTEROPTIONS, false );
+ const SfxStringItem* pFilterOptItem = aParams->GetItem<SfxStringItem>(SID_FILE_FILTEROPTIONS, false);
if ( pFilterOptItem )
pSet->Put( *pFilterOptItem );