summaryrefslogtreecommitdiffstats
path: root/vbahelper
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbacolorformat.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbafontbase.cxx8
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) );
}