convert Link<> to typed

Change-Id: Ica5093e29630d6d6974ccba034609129887ac85b
Reviewed-on: https://gerrit.libreoffice.org/18802
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2015-09-23 09:55:11 +02:00
parent 473a8e2cca
commit 146fe08382
3 changed files with 4 additions and 5 deletions

View File

@@ -311,10 +311,9 @@ namespace frm
}
IMPL_LINK_NOARG( RichTextControlImpl, OnInvalidateAllAttributes )
IMPL_LINK_NOARG_TYPED( RichTextControlImpl, OnInvalidateAllAttributes, LinkParamNone*, void )
{
updateAllAttributes();
return 0L;
}

View File

@@ -173,7 +173,7 @@ namespace frm
virtual void EditEngineStatusChanged( const EditStatus& _rStatus ) SAL_OVERRIDE;
private:
DECL_LINK( OnInvalidateAllAttributes, void* );
DECL_LINK_TYPED( OnInvalidateAllAttributes, LinkParamNone*, void );
DECL_LINK_TYPED( OnHScroll, ScrollBar*, void );
DECL_LINK_TYPED( OnVScroll, ScrollBar*, void );
};

View File

@@ -29,7 +29,7 @@ namespace frm
{
private:
EditView* m_pView;
Link<> m_aInvalidationHandler;
Link<LinkParamNone*,void> m_aInvalidationHandler;
bool m_bHideInactiveSelection;
public:
@@ -37,7 +37,7 @@ namespace frm
void setView( EditView& _rView );
inline void setAttributeInvalidationHandler( const Link<>& _rHandler ) { m_aInvalidationHandler = _rHandler; }
inline void setAttributeInvalidationHandler( const Link<LinkParamNone*,void>& _rHandler ) { m_aInvalidationHandler = _rHandler; }
void SetHideInactiveSelection( bool _bHide );
bool GetHideInactiveSelection() const { return m_bHideInactiveSelection; }