[Libreoffice-commits] core.git: toolkit/source

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 12 09:50:43 UTC 2019


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

New commits:
commit 9e1d1e2cab4933e586910604d2044c085666de93
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Wed Mar 27 21:26:21 2019 -0400
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Jun 12 11:49:23 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>
    Reviewed-on: https://gerrit.libreoffice.org/73491
    Tested-by: Jenkins
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

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


More information about the Libreoffice-commits mailing list