summaryrefslogtreecommitdiffstats
path: root/cui/source/options/optdict.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/optdict.cxx')
-rw-r--r--cui/source/options/optdict.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index 28535aaaa1d3..d8ddc4e9b0c3 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -206,13 +206,12 @@ IMPL_LINK_NOARG_TYPED(SvxNewDictionaryDialog, OKHdl_Impl, Button*, void)
-IMPL_LINK_NOARG(SvxNewDictionaryDialog, ModifyHdl_Impl)
+IMPL_LINK_NOARG_TYPED(SvxNewDictionaryDialog, ModifyHdl_Impl, Edit&, void)
{
if ( !pNameEdit->GetText().isEmpty() )
pOKBtn->Enable();
else
pOKBtn->Disable();
- return 0;
}
// class SvxEditDictionaryDialog -------------------------------------------
@@ -690,15 +689,15 @@ bool SvxEditDictionaryDialog::NewDelHdl(void* pBtn)
// which means EndDialog() - has to be evaluated in KeyInput
return false;
}
- ModifyHdl(pWordED);
+ ModifyHdl(*pWordED);
return true;
}
-IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
+IMPL_LINK_TYPED(SvxEditDictionaryDialog, ModifyHdl, Edit&, rEdt, void)
{
- OUString rEntry = pEdt->GetText();
+ OUString rEntry = rEdt.GetText();
sal_Int32 nWordLen = rEntry.getLength();
const OUString& rRepString = pReplaceED->GetText();
@@ -707,7 +706,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
bool bEnableDelete = false;
OUString aNewReplaceText = sNew;
- if(pEdt == pWordED)
+ if(&rEdt == pWordED)
{
if(nWordLen>0)
{
@@ -768,7 +767,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
bDoNothing=false;
}
}
- else if(pEdt == pReplaceED)
+ else if(&rEdt == pReplaceED)
{
OUString aReplaceText;
OUString aWordText;
@@ -791,8 +790,6 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
pNewReplacePB->SetText( aNewReplaceText );
pNewReplacePB->Enable( bEnableNewReplace && !IsDicReadonly_Impl() );
pDeletePB->Enable( bEnableDelete && !IsDicReadonly_Impl() );
-
- return 0;
}