diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-15 08:13:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-16 09:11:29 +0000 |
commit | 6f1313b3d44ea54e9a331e0fc00871081fa662fe (patch) | |
tree | fa6d9b6da04daedcb63ea2a0bc8c414288ed8bc6 /chart2/source/controller/dialogs/tp_Scale.cxx | |
parent | convert "continue" flag to an enum (diff) | |
download | core-6f1313b3d44ea54e9a331e0fc00871081fa662fe.tar.gz core-6f1313b3d44ea54e9a331e0fc00871081fa662fe.zip |
convert Link<> to typed
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6
Reviewed-on: https://gerrit.libreoffice.org/19405
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source/controller/dialogs/tp_Scale.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/tp_Scale.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx index 5206848b4df7..ece435b7d433 100644 --- a/chart2/source/controller/dialogs/tp_Scale.cxx +++ b/chart2/source/controller/dialogs/tp_Scale.cxx @@ -157,12 +157,11 @@ void ScaleTabPage::dispose() SfxTabPage::dispose(); } -IMPL_STATIC_LINK( - ScaleTabPage, FmtFieldModifiedHdl, FormattedField*, pFmtFied ) +IMPL_STATIC_LINK_TYPED( + ScaleTabPage, FmtFieldModifiedHdl, Edit&, rEdit, void ) { - if( pFmtFied ) - pFmtFied->SetDefaultValue( pFmtFied->GetValue() ); - return 0; + FormattedField& rFmtField = static_cast<FormattedField&>(rEdit); + rFmtField.SetDefaultValue( rFmtField.GetValue() ); } void ScaleTabPage::StateChanged( StateChangedType nType ) |