diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx index cb7a087f0ce4..bb6dd5bcd872 100644 --- a/sc/source/ui/inc/anyrefdg.hxx +++ b/sc/source/ui/inc/anyrefdg.hxx @@ -258,19 +258,19 @@ struct ScRefHdlrImpl: ScRefHdlrImplBase< TBase, bBindRef > ScRefHdlrImpl( const T1 & rt1, const T2 & rt2, const T3& rt3, const T4& rt4 ) : ScRefHdlrImplBase(rt1, rt2, rt3, rt4) { - SC_MOD()->RegisterRefWindow( static_cast( static_cast(this)->SLOTID ), this ); + SC_MOD()->RegisterRefWindow( static_cast( TDerived::SLOTID ), this ); } template ScRefHdlrImpl( const T1 & rt1, const T2 & rt2, const T3& rt3, const T4& rt4, const T5& rt5 ) : ScRefHdlrImplBase(rt1, rt2, rt3, rt4, rt5) { - SC_MOD()->RegisterRefWindow( static_cast( static_cast(this)->SLOTID ), this ); + SC_MOD()->RegisterRefWindow( static_cast( TDerived::SLOTID ), this ); } virtual void dispose() SAL_OVERRIDE { - SC_MOD()->UnregisterRefWindow( static_cast( static_cast(this)->SLOTID ), this ); + SC_MOD()->UnregisterRefWindow( static_cast( TDerived::SLOTID ), this ); ScRefHdlrImplBase::disposeRefHandler(); TBase::dispose(); }