From 9685276b975aa37d16ba81dd8294b5717e3823df Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Sep 2014 15:25:48 +0200 Subject: cppu and cppuhelper: loplugin: cstylecast Add a macro in include/cppuhelper/implbase_ex.hxx to make initialising the type_entry classes a little less verbose. Change-Id: I0904b5b9db269c92bc89e7ce3d6c8b09350c9897 --- cppuhelper/source/weak.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppuhelper/source/weak.cxx') diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx index 65018b7d75ec..57ae161f50ed 100644 --- a/cppuhelper/source/weak.cxx +++ b/cppuhelper/source/weak.cxx @@ -109,7 +109,7 @@ void SAL_CALL OWeakConnectionPoint::dispose() throw(::com::sun::star::uno::Runti { try { - ((XReference *)aIt.next())->dispose(); + static_cast(aIt.next())->dispose(); } catch (com::sun::star::lang::DisposedException &) {} catch (RuntimeException &) -- cgit