summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-03-27 21:26:21 -0400
committerJan Holesovsky <kendy@collabora.com>2019-06-12 11:49:23 +0200
commit9e1d1e2cab4933e586910604d2044c085666de93 (patch)
treed32e8f811e88d8af4a1759e6c3fa60d37b28cc18 /toolkit
parent8e70df7fdac8b723d1c762b84ed13a8da2fafb27 (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> Reviewed-on: https://gerrit.libreoffice.org/73491 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.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 8c1c69d2f792..f7281ced9c1d 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -1872,14 +1872,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 );
}
@@ -1889,7 +1889,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 );
}