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

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 3 11:41:25 UTC 2019


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

New commits:
commit eb0e79662549454d056ae07cad9a4909b60d8439
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Wed Mar 27 21:26:21 2019 -0400
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Sep 3 13:40:36 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>
    (cherry picked from commit 8286ce93454e39d5669a381cb1785392ad7e43f3)
    Reviewed-on: https://gerrit.libreoffice.org/78445
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

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


More information about the Libreoffice-commits mailing list