sc/source/ui/inc/anyrefdg.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit cd17c9f96ae2ba52a07178c1b59c6efc090b45ed Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Jun 4 18:06:17 2015 +0200 Don't downcast this to derived in base ctor Change-Id: I1a0a6a7f0ac2292a7824bd35967140a20ee93f89 diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx index cb7a087..bb6dd5b 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<TBase, bBindRef >(rt1, rt2, rt3, rt4) { - SC_MOD()->RegisterRefWindow( static_cast<sal_uInt16>( static_cast<TDerived*>(this)->SLOTID ), this ); + SC_MOD()->RegisterRefWindow( static_cast<sal_uInt16>( TDerived::SLOTID ), this ); } template<class T1, class T2, class T3, class T4, class T5> ScRefHdlrImpl( const T1 & rt1, const T2 & rt2, const T3& rt3, const T4& rt4, const T5& rt5 ) : ScRefHdlrImplBase<TBase, bBindRef >(rt1, rt2, rt3, rt4, rt5) { - SC_MOD()->RegisterRefWindow( static_cast<sal_uInt16>( static_cast<TDerived*>(this)->SLOTID ), this ); + SC_MOD()->RegisterRefWindow( static_cast<sal_uInt16>( TDerived::SLOTID ), this ); } virtual void dispose() SAL_OVERRIDE { - SC_MOD()->UnregisterRefWindow( static_cast<sal_uInt16>( static_cast<TDerived*>(this)->SLOTID ), this ); + SC_MOD()->UnregisterRefWindow( static_cast<sal_uInt16>( TDerived::SLOTID ), this ); ScRefHdlrImplBase<TBase, bBindRef >::disposeRefHandler(); TBase::dispose(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits