diff options
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/vba/vbawsfunction.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 151403fa1f31..49a0d263bb48 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -3801,7 +3801,7 @@ ScVbaRange::setColumnWidth( const uno::Any& _columnwidth ) { for ( sal_Int32 index = 1; index != nLen; ++index ) { - uno::Reference< excel::XRange > xRange( m_Areas->Item( uno::makeAny( sal_Int32(index) ), uno::Any() ), uno::UNO_QUERY_THROW ); + uno::Reference< excel::XRange > xRange( m_Areas->Item( uno::makeAny( index ), uno::Any() ), uno::UNO_QUERY_THROW ); xRange->setColumnWidth( _columnwidth ); } return; @@ -3965,7 +3965,7 @@ ScVbaRange::setRowHeight( const uno::Any& _rowheight) { for ( sal_Int32 index = 1; index != nLen; ++index ) { - uno::Reference< excel::XRange > xRange( m_Areas->Item( uno::makeAny( sal_Int32(index) ), uno::Any() ), uno::UNO_QUERY_THROW ); + uno::Reference< excel::XRange > xRange( m_Areas->Item( uno::makeAny( index ), uno::Any() ), uno::UNO_QUERY_THROW ); xRange->setRowHeight( _rowheight ); } return; @@ -4707,7 +4707,7 @@ ScVbaRange::Autofit() { for ( sal_Int32 index = 1; index != nLen; ++index ) { - uno::Reference< excel::XRange > xRange( m_Areas->Item( uno::makeAny( sal_Int32(index) ), uno::Any() ), uno::UNO_QUERY_THROW ); + uno::Reference< excel::XRange > xRange( m_Areas->Item( uno::makeAny( index ), uno::Any() ), uno::UNO_QUERY_THROW ); xRange->Autofit(); } return; diff --git a/sc/source/ui/vba/vbawsfunction.cxx b/sc/source/ui/vba/vbawsfunction.cxx index 5e319fe7173b..ca7cf6dadc08 100644 --- a/sc/source/ui/vba/vbawsfunction.cxx +++ b/sc/source/ui/vba/vbawsfunction.cxx @@ -58,9 +58,9 @@ void lclConvertBooleanToDouble( uno::Any& rAny ) if ( rAny >>= bValue ) { if ( bValue ) - rAny <<= double( 1.0 ); + rAny <<= 1.0; else - rAny <<= double( 0.0 ); + rAny <<= 0.0; } } |