sc/source/core/data/SolverSettings.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4ca42f5d7c6b29814741f6df74dbc22ea45b47ca
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Mon Mar 27 12:42:58 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon Mar 27 14:52:04 2023 +0000

    -Werror=maybe-uninitialized
    
    Change-Id: I65f7583851dda2233a375a9f37a7e12a7fc29d07
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149625
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sc/source/core/data/SolverSettings.cxx 
b/sc/source/core/data/SolverSettings.cxx
index bf1662576d50..53fc497c849e 100644
--- a/sc/source/core/data/SolverSettings.cxx
+++ b/sc/source/core/data/SolverSettings.cxx
@@ -430,13 +430,13 @@ void 
SolverSettings::SetEngineOptions(css::uno::Sequence<css::beans::PropertyVal
             OUString sParamType = std::get<OUString>(aParamInfo[2]);
             if (sParamType == "int")
             {
-                sal_Int32 nValue;
+                sal_Int32 nValue = 0;
                 aProp.Value >>= nValue;
                 SetParameter(eParamId, OUString::number(nValue));
             }
             if (sParamType == "bool")
             {
-                bool bValue;
+                bool bValue = false;
                 aProp.Value >>= bValue;
                 if (sLOParamName == "NonNegative")
                 {

Reply via email to