From a1a5588b1b440836a6655ab0af5f854f3f5eb5ed Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jun 2015 16:25:25 +0200 Subject: loplugin:cstylecast: deal with remaining pointer casts Change-Id: I4a72a60d621c65e63310ef70b991f9c86f00494d --- framework/source/uifactory/addonstoolbarfactory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/source/uifactory') diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx index a7bac9f9f562..713f95cc32c0 100644 --- a/framework/source/uifactory/addonstoolbarfactory.cxx +++ b/framework/source/uifactory/addonstoolbarfactory.cxx @@ -215,7 +215,7 @@ throw ( ::com::sun::star::container::NoSuchElementException, SolarMutexGuard aGuard; AddonsToolBarWrapper* pToolBarWrapper = new AddonsToolBarWrapper( m_xContext ); - xToolBar = Reference< ::com::sun::star::ui::XUIElement >( (OWeakObject *)pToolBarWrapper, UNO_QUERY ); + xToolBar = Reference< ::com::sun::star::ui::XUIElement >( static_cast(pToolBarWrapper), UNO_QUERY ); Reference< XInitialization > xInit( xToolBar, UNO_QUERY ); xInit->initialize( aPropSeq ); } -- cgit