diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-03-27 21:26:21 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-09-03 13:40:36 +0200 |
commit | eb0e79662549454d056ae07cad9a4909b60d8439 (patch) | |
tree | 0f002339788e7aab0b0f57e018b0ce1e48156194 /toolkit | |
parent | 00e36fa26005128e3fcd8d4eef15577ed58c1346 (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>
(cherry picked from commit 8286ce93454e39d5669a381cb1785392ad7e43f3)
Reviewed-on: https://gerrit.libreoffice.org/78445
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxwindows.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index f50c8ffb55ec..b3cbbdd2c296 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -1849,14 +1849,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 ); } @@ -1866,7 +1866,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 ); } |