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

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed May 20 13:01:20 UTC 2020


 toolkit/source/controls/controlmodelcontainerbase.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7daab7859f3b5b4297c45ac1631c68387192a962
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed May 20 14:17:36 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed May 20 15:00:41 2020 +0200

    fix -Werror=maybe-uninitialized
    
    Change-Id: I718016b5f9120c18868ed798785af1f8108be25b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94569
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index fc5b0e374c1f..05b9edb18643 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -736,7 +736,7 @@ sal_Bool SAL_CALL ControlModelContainerBase::getEnabled()
 {
     SolarMutexGuard aGuard;
     Reference<XPropertySet> xThis(*this, UNO_QUERY);
-    bool bEnabled;
+    bool bEnabled = false;
     xThis->getPropertyValue(GetPropertyName(BASEPROPERTY_ENABLED)) >>= bEnabled;
     return bEnabled;
 }


More information about the Libreoffice-commits mailing list