summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/annotsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/annotsh.cxx')
-rw-r--r--sw/source/uibase/shells/annotsh.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index a07e9a684eff..d4e9cdaac179 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -275,7 +275,7 @@ void SwAnnotationShell::Exec( SfxRequest &rReq )
{
if( rReq.GetArgs() )
{
- SFX_REQUEST_ARG(rReq, pItem, SvxUnderlineItem, SID_ATTR_CHAR_UNDERLINE);
+ const SvxUnderlineItem* pItem = rReq.GetArg<SvxUnderlineItem>(SID_ATTR_CHAR_UNDERLINE);
if (pItem)
{
aNewAttr.Put(*pItem);
@@ -470,7 +470,7 @@ void SwAnnotationShell::Exec( SfxRequest &rReq )
case SID_CHAR_DLG:
{
const SfxItemSet* pArgs = rReq.GetArgs();
- SFX_REQUEST_ARG(rReq, pItem, SfxStringItem, FN_PARAM_1);
+ const SfxStringItem* pItem = rReq.GetArg<SfxStringItem>(FN_PARAM_1);
if( !pArgs || pItem )
{
@@ -1113,7 +1113,7 @@ void SwAnnotationShell::NoteExec(SfxRequest &rReq)
break;
case FN_DELETE_NOTE_AUTHOR:
{
- SFX_REQUEST_ARG(rReq, pItem, SfxStringItem, nSlot);
+ const SfxStringItem* pItem = rReq.GetArg<SfxStringItem>(nSlot);
if ( pItem )
pPostItMgr->Delete( pItem->GetValue() );
break;
@@ -1125,7 +1125,7 @@ void SwAnnotationShell::NoteExec(SfxRequest &rReq)
break;
case FN_HIDE_NOTE_AUTHOR:
{
- SFX_REQUEST_ARG(rReq, pItem, SfxStringItem, nSlot);
+ const SfxStringItem* pItem = rReq.GetArg<SfxStringItem>(nSlot);
if ( pItem )
pPostItMgr->Hide( pItem->GetValue() );
}
@@ -1222,7 +1222,7 @@ void SwAnnotationShell::ExecLingu(SfxRequest &rReq)
case SID_THES:
{
OUString aReplaceText;
- SFX_REQUEST_ARG(rReq, pItem2, SfxStringItem, SID_THES);
+ const SfxStringItem* pItem2 = rReq.GetArg<SfxStringItem>(SID_THES);
if (pItem2)
aReplaceText = pItem2->GetValue();
if (!aReplaceText.isEmpty())