diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-22 12:03:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-23 12:36:16 +0200 |
commit | 229eed079c675e70118370044ae91a69c60d044e (patch) | |
tree | c2d26c6158aa43633f034c9abbebbe18ecc1e565 /vbahelper | |
parent | 5f6f57c26ee15787ca2f775f853e57cfc11d666f (diff) |
loplugin: cstylecast
Change-Id: If991c0efe1ded6ef6d32b3a722ee87bbe36bf0bf
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbacolorformat.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbafontbase.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
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<ScVbaFillFormat*>( 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) ); } |