summaryrefslogtreecommitdiffstats
path: root/sfx2/source/dialog/passwd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/passwd.cxx')
-rw-r--r--sfx2/source/dialog/passwd.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx
index 96f7c42a6dea..c5397355aebd 100644
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -29,7 +29,12 @@
-IMPL_LINK( SfxPasswordDialog, EditModifyHdl, Edit *, pEdit )
+IMPL_LINK_TYPED( SfxPasswordDialog, EditModifyHdl, Edit&, rEdit, void )
+{
+ ModifyHdl(&rEdit);
+}
+
+void SfxPasswordDialog::ModifyHdl(Edit* pEdit)
{
if (mbAsciiOnly && (pEdit == mpPassword1ED || pEdit == mpPassword2ED))
{
@@ -57,7 +62,6 @@ IMPL_LINK( SfxPasswordDialog, EditModifyHdl, Edit *, pEdit )
if( mpPassword2ED->IsVisible() )
bEnable = (bEnable && (mpPassword2ED->GetText().getLength() >= mnMinLen));
mpOKBtn->Enable( bEnable );
- return 0;
}
IMPL_LINK_NOARG_TYPED(SfxPasswordDialog, OKHdl, Button*, void)
@@ -108,7 +112,7 @@ SfxPasswordDialog::SfxPasswordDialog(vcl::Window* pParent, const OUString* pGrou
mpPassword1ED->SetAccessibleName(SFX2_RESSTR(STR_PASSWD));
- Link<> aLink = LINK( this, SfxPasswordDialog, EditModifyHdl );
+ Link<Edit&,void> aLink = LINK( this, SfxPasswordDialog, EditModifyHdl );
mpPassword1ED->SetModifyHdl( aLink );
mpPassword2ED->SetModifyHdl( aLink );
mpOKBtn->SetClickHdl( LINK( this, SfxPasswordDialog, OKHdl ) );
@@ -168,7 +172,7 @@ void SfxPasswordDialog::SetMinLen( sal_uInt16 nLen )
{
mnMinLen = nLen;
SetPasswdText();
- EditModifyHdl( NULL );
+ ModifyHdl( NULL );
}
void SfxPasswordDialog::ShowMinLengthText(bool bShow)