summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-03-27 21:26:21 -0400
committerAshod Nakashian <ashnakash@gmail.com>2019-04-13 16:52:26 +0200
commit8286ce93454e39d5669a381cb1785392ad7e43f3 (patch)
tree57dcfae7949a8dfbb817c5d676b7b99b03b502b7 /toolkit
parentc48f16b7afcad39462b454bdfbdbe412056c2619 (diff)
toolkit: initialize primitive types explicitly
Change-Id: I1e09d458d1c6c4842750368fbd45ef326fa1bedb Reviewed-on: https://gerrit.libreoffice.org/70160 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 389421e36722..1a5ef7c4b319 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -1848,14 +1848,14 @@ void VCLXListBox::setProperty( const OUString& PropertyName, const css::uno::Any
break;
case BASEPROPERTY_READONLY:
{
- bool b = bool();
+ bool b = false;
if ( Value >>= b )
pListBox->SetReadOnly( b);
}
break;
case BASEPROPERTY_MULTISELECTION:
{
- bool b = bool();
+ bool b = false;
if ( Value >>= b )
pListBox->EnableMultiSelection( b );
}
@@ -1865,7 +1865,7 @@ void VCLXListBox::setProperty( const OUString& PropertyName, const css::uno::Any
break;
case BASEPROPERTY_LINECOUNT:
{
- sal_Int16 n = sal_Int16();
+ sal_Int16 n = 0;
if ( Value >>= n )
pListBox->SetDropDownLineCount( n );
}