summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-10 15:24:30 +0200
committerNoel Grandin <noel@peralex.com>2015-09-11 08:48:55 +0200
commitc80fb09256f02379b78f7bb219e94dfbf5277872 (patch)
treead5f615dcd45b02d48e7e0b4933d344a06461c1f /extensions/source/propctrlr
parentcf0c04a428754dfd5aa477cebc5441bc74e27005 (diff)
convert Link<> to typed
Change-Id: I8f64b8f8e1e8ac7ce1475fc5132acb7171237a32
Diffstat (limited to 'extensions/source/propctrlr')
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx4
-rw-r--r--extensions/source/propctrlr/usercontrol.hxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index 43f09b42e978..3a2b02de909f 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -329,7 +329,7 @@ namespace pcr
}
- IMPL_LINK( OTimeDurationControl, OnCustomConvert, MetricField*, /*pField*/ )
+ IMPL_LINK_NOARG_TYPED( OTimeDurationControl, OnCustomConvert, MetricFormatter&, void )
{
long nMultiplier = 1;
if ( getTypedControlWindow()->GetCurUnitText().equalsIgnoreAsciiCase( "ms" ) )
@@ -342,8 +342,6 @@ namespace pcr
nMultiplier = 1000 * 60 * 60;
getTypedControlWindow()->SetValue( getTypedControlWindow()->GetLastValue() * nMultiplier );
-
- return 0L;
}
diff --git a/extensions/source/propctrlr/usercontrol.hxx b/extensions/source/propctrlr/usercontrol.hxx
index 3fe258a7d9bd..44f1a29e8c61 100644
--- a/extensions/source/propctrlr/usercontrol.hxx
+++ b/extensions/source/propctrlr/usercontrol.hxx
@@ -152,7 +152,7 @@ namespace pcr
::sal_Int16 SAL_CALL getControlType() throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
private:
- DECL_LINK( OnCustomConvert, MetricField* );
+ DECL_LINK_TYPED( OnCustomConvert, MetricFormatter&, void );
};