sc/source/ui/unoobj/afmtuno.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e96be4156d50f9c1756cd5ff324a10a7a3487968
Author:     Noel Grandin <noelgran...@collabora.co.uk>
AuthorDate: Thu Nov 3 15:27:22 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Nov 3 18:35:00 2022 +0100

    fix warning C4701: potentially uninitialized local variable 'bBool' used
    
    seen on jenkins
    
    Change-Id: I9d514580a80534eff45578c9b6cfdaf45fb7285f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142234
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx
index 3dc34bc259e0..b26e38cd81b0 100644
--- a/sc/source/ui/unoobj/afmtuno.cxx
+++ b/sc/source/ui/unoobj/afmtuno.cxx
@@ -479,7 +479,7 @@ void SAL_CALL ScAutoFormatObj::setPropertyValue(
     ScAutoFormatData* pData = pFormats->findByIndex(nFormatIndex);
     OSL_ENSURE(pData,"AutoFormat data not available");
 
-    bool bBool;
+    bool bBool = false;
     if (aPropertyName == SC_UNONAME_INCBACK && (aValue >>= bBool))
         pData->SetIncludeBackground( bBool );
     else if (aPropertyName == SC_UNONAME_INCBORD && (aValue >>= bBool))

Reply via email to