aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 14:17:36 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-01-25 11:18:52 +0100
commitaefbc8a59bd7a3302f9253322135e2fd0f859ed7 (patch)
treec53d8eb2f8da86c2c26dc68c2eaaff5d4351c28b
parent86f4db5deae397380918d47578007fe8ca379182 (diff)
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@collabora.co.uk> (cherry picked from commit 7daab7859f3b5b4297c45ac1631c68387192a962)
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index 3b2fcaa891a7..971fc0fd0825 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -753,7 +753,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;
}