summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx4
-rw-r--r--vbahelper/source/vbahelper/vbafontbase.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx
index fa857c7730..7485073321 100644
--- a/vbahelper/source/msforms/vbacontrol.cxx
+++ b/vbahelper/source/msforms/vbacontrol.cxx
@@ -258,8 +258,8 @@ void SAL_CALL ScVbaControl::SetFocus() throw (uno::RuntimeException)
void SAL_CALL ScVbaControl::Move( double Left, double Top, const uno::Any& Width, const uno::Any& Height )
throw ( uno::RuntimeException )
{
- double nWidth;
- double nHeight;
+ double nWidth = 0.0;
+ double nHeight = 0.0;
setLeft( Left );
setTop( Top );
diff --git a/vbahelper/source/vbahelper/vbafontbase.cxx b/vbahelper/source/vbahelper/vbafontbase.cxx
index f0ffcbf2ab..9b931a5462 100644
--- a/vbahelper/source/vbahelper/vbafontbase.cxx
+++ b/vbahelper/source/vbahelper/vbafontbase.cxx
@@ -127,7 +127,7 @@ VbaFontBase::setSize( const uno::Any& aValue ) throw( uno::RuntimeException )
uno::Any aVal( aValue );
if( mbFormControl )
{
- float fVal;
+ float fVal = 0.0;
aVal >>= fVal;
aVal <<= static_cast< sal_Int16 >( fVal );
}