summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/view2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/view2.cxx')
-rw-r--r--sw/source/uibase/uiview/view2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index 64fa8a32a22b..982d5e96a72f 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -360,7 +360,7 @@ bool SwView::InsertGraphicDlg( SfxRequest& rReq )
OSL_FAIL("control access failed");
}
- SFX_REQUEST_ARG(rReq, pName, SfxStringItem, SID_INSERT_GRAPHIC);
+ const SfxStringItem* pName = rReq.GetArg<SfxStringItem>(SID_INSERT_GRAPHIC);
bool bShowError = !pName;
if( pName || ERRCODE_NONE == pFileDlg->Execute() )
{
@@ -369,7 +369,7 @@ bool SwView::InsertGraphicDlg( SfxRequest& rReq )
if ( pName )
{
aFileName = pName->GetValue();
- SFX_REQUEST_ARG(rReq, pFilter, SfxStringItem, FN_PARAM_FILTER);
+ const SfxStringItem* pFilter = rReq.GetArg<SfxStringItem>(FN_PARAM_FILTER);
if ( pFilter )
aFilterName = pFilter->GetValue();
}
@@ -405,8 +405,8 @@ bool SwView::InsertGraphicDlg( SfxRequest& rReq )
rReq.AppendItem( SfxBoolItem( FN_PARAM_1, bAsLink ) );
}
- SFX_REQUEST_ARG(rReq, pAsLink, SfxBoolItem, FN_PARAM_1);
- SFX_REQUEST_ARG(rReq, pStyle, SfxStringItem, FN_PARAM_2);
+ const SfxBoolItem* pAsLink = rReq.GetArg<SfxBoolItem>(FN_PARAM_1);
+ const SfxStringItem* pStyle = rReq.GetArg<SfxStringItem>(FN_PARAM_2);
bool bAsLink = false;
if( nHtmlMode & HTMLMODE_ON )