summaryrefslogtreecommitdiff
path: root/uui/source/secmacrowarnings.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-19 09:11:34 +0200
committerNoel Grandin <noel@peralex.com>2015-08-26 11:15:35 +0200
commit167bc621ef825ed5b961502fe9324a675ee34e42 (patch)
tree523838d8adc14a62f846529ee6eab3343b2fe87b /uui/source/secmacrowarnings.cxx
parent46a27805fb707544a844a961a3743b8b992282f0 (diff)
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'uui/source/secmacrowarnings.cxx')
-rw-r--r--uui/source/secmacrowarnings.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx
index cb661be0d97d..39fbda6af57f 100644
--- a/uui/source/secmacrowarnings.cxx
+++ b/uui/source/secmacrowarnings.cxx
@@ -113,7 +113,7 @@ void MacroWarning::SetDocumentURL( const OUString& rDocURL )
mpDocNameFI->SetText( rDocURL );
}
-IMPL_LINK_NOARG(MacroWarning, ViewSignsBtnHdl)
+IMPL_LINK_NOARG_TYPED(MacroWarning, ViewSignsBtnHdl, Button*, void)
{
DBG_ASSERT( mxCert.is(), "*MacroWarning::ViewSignsBtnHdl(): no certificate set!" );
@@ -126,11 +126,9 @@ IMPL_LINK_NOARG(MacroWarning, ViewSignsBtnHdl)
else if( mxStore.is() )
xD->showScriptingContentSignatures( mxStore, uno::Reference< io::XInputStream >() );
}
-
- return 0;
}
-IMPL_LINK_NOARG(MacroWarning, EnableBtnHdl)
+IMPL_LINK_NOARG_TYPED(MacroWarning, EnableBtnHdl, Button*, void)
{
if( mbSignedMode && mpAlwaysTrustCB->IsChecked() )
{ // insert path into trusted path list
@@ -149,22 +147,18 @@ IMPL_LINK_NOARG(MacroWarning, EnableBtnHdl)
}
EndDialog( RET_OK );
- return 0;
}
-IMPL_LINK_NOARG(MacroWarning, DisableBtnHdl)
+IMPL_LINK_NOARG_TYPED(MacroWarning, DisableBtnHdl, Button*, void)
{
EndDialog();
- return 0;
}
-IMPL_LINK_NOARG(MacroWarning, AlwaysTrustCheckHdl)
+IMPL_LINK_NOARG_TYPED(MacroWarning, AlwaysTrustCheckHdl, Button*, void)
{
bool bEnable = ( mnActSecLevel < 2 || mpAlwaysTrustCB->IsChecked() );
mpEnableBtn->Enable( bEnable );
mpDisableBtn->Enable( !mpAlwaysTrustCB->IsChecked() );
-
- return 0;
}
void MacroWarning::InitControls()