[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - toolkit/source

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Sat Apr 13 14:52:58 UTC 2019


 toolkit/source/awt/vclxwindows.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 8286ce93454e39d5669a381cb1785392ad7e43f3
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Wed Mar 27 21:26:21 2019 -0400
Commit:     Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Sat Apr 13 16:52:26 2019 +0200

    toolkit: initialize primitive types explicitly
    
    Change-Id: I1e09d458d1c6c4842750368fbd45ef326fa1bedb
    Reviewed-on: https://gerrit.libreoffice.org/70160
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

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 );
             }


More information about the Libreoffice-commits mailing list