diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-08-31 01:01:21 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2014-09-03 18:12:21 +0300 |
commit | f3cec45a2e240fcf4ab84e77d51e2b700492f830 (patch) | |
tree | d882e450a429828d97501054e56e568c19b793da | |
parent | 77ce41f2571c3158f00e2b632ce006059282c462 (diff) |
Simplify this
No other SIDs here have any args anyway.
Change-Id: I8444a40d1d428f671f65dc536ec507a6c0611b61
-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 ) { |