From 7daab7859f3b5b4297c45ac1631c68387192a962 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 May 2020 14:17:36 +0200 Subject: fix -Werror=maybe-uninitialized Change-Id: I718016b5f9120c18868ed798785af1f8108be25b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94569 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/source/controls/controlmodelcontainerbase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit/source/controls/controlmodelcontainerbase.cxx') 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 xThis(*this, UNO_QUERY); - bool bEnabled; + bool bEnabled = false; xThis->getPropertyValue(GetPropertyName(BASEPROPERTY_ENABLED)) >>= bEnabled; return bEnabled; } -- cgit