diff options
-rw-r--r-- | sw/source/uibase/shells/annotsh.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/shells/drwtxtex.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index 7ead827b136f..c44c9a8b1fc9 100644 --- a/sw/source/uibase/shells/annotsh.cxx +++ b/sw/source/uibase/shells/annotsh.cxx @@ -466,9 +466,7 @@ void SwAnnotationShell::Exec( SfxRequest &rReq ) case SID_CHAR_DLG: { const SfxItemSet* pArgs = rReq.GetArgs(); - const SfxStringItem* pItem = 0; - if (pArgs && nSlot == SID_CHAR_DLG) - pItem = static_cast< const SfxStringItem* >(pArgs->GetItem(FN_PARAM_1, false, TYPE(SfxStringItem) ) ); + SFX_REQUEST_ARG(rReq, pItem, SfxStringItem, FN_PARAM_1, false); if( !pArgs || pItem ) { diff --git a/sw/source/uibase/shells/drwtxtex.cxx b/sw/source/uibase/shells/drwtxtex.cxx index fef670ea16b3..6cf3c146e836 100644 --- a/sw/source/uibase/shells/drwtxtex.cxx +++ b/sw/source/uibase/shells/drwtxtex.cxx @@ -298,9 +298,7 @@ void SwDrawTextShell::Execute( SfxRequest &rReq ) case SID_CHAR_DLG_FOR_PARAGRAPH: { const SfxItemSet* pArgs = rReq.GetArgs(); - const SfxStringItem* pItem = 0; - if (pArgs && nSlot == SID_CHAR_DLG) - pItem = static_cast< const SfxStringItem* >(pArgs->GetItem(FN_PARAM_1, false, TYPE(SfxStringItem) ) ); + SFX_REQUEST_ARG(rReq, pItem, SfxStringItem, FN_PARAM_1, false); if( !pArgs || pItem ) { |