From 229eed079c675e70118370044ae91a69c60d044e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 22 Oct 2014 12:03:38 +0200 Subject: loplugin: cstylecast Change-Id: If991c0efe1ded6ef6d32b3a722ee87bbe36bf0bf --- vbahelper/source/vbahelper/vbacolorformat.cxx | 2 +- vbahelper/source/vbahelper/vbafontbase.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbacolorformat.cxx b/vbahelper/source/vbahelper/vbacolorformat.cxx index f3b49468ced0..22e553990dce 100644 --- a/vbahelper/source/vbahelper/vbacolorformat.cxx +++ b/vbahelper/source/vbahelper/vbacolorformat.cxx @@ -47,7 +47,7 @@ ScVbaColorFormat::ScVbaColorFormat( const uno::Reference< XHelperInterface >& xP try { uno::Reference< ov::msforms::XFillFormat > xFillFormat( xInternalParent, uno::UNO_QUERY_THROW ); - m_pFillFormat = ( ScVbaFillFormat* )( xFillFormat.get() ); + m_pFillFormat = static_cast( xFillFormat.get() ); }catch ( uno::RuntimeException& ) { m_pFillFormat = NULL; diff --git a/vbahelper/source/vbahelper/vbafontbase.cxx b/vbahelper/source/vbahelper/vbafontbase.cxx index 6c69943e4aa8..8b6384d37e42 100644 --- a/vbahelper/source/vbahelper/vbafontbase.cxx +++ b/vbahelper/source/vbahelper/vbafontbase.cxx @@ -65,8 +65,8 @@ VbaFontBase::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeExcept nValue = SUPERSCRIPT; nValue2 = SUPERSCRIPTHEIGHT; } - mxFont->setPropertyValue( "CharEscapement" , ( uno::Any )nValue ); - mxFont->setPropertyValue( "CharEscapementHeight" , ( uno::Any )nValue2 ); + mxFont->setPropertyValue( "CharEscapement" , uno::Any(nValue) ); + mxFont->setPropertyValue( "CharEscapementHeight" , uno::Any(nValue2) ); } uno::Any SAL_CALL @@ -97,8 +97,8 @@ VbaFontBase::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeExceptio nValue2 = SUBSCRIPTHEIGHT; } - mxFont->setPropertyValue( "CharEscapementHeight" , ( uno::Any )nValue2 ); - mxFont->setPropertyValue( "CharEscapement" , ( uno::Any )nValue ); + mxFont->setPropertyValue( "CharEscapementHeight" , uno::Any(nValue2) ); + mxFont->setPropertyValue( "CharEscapement" , uno::Any(nValue) ); } -- cgit