svl/source/items/imageitm.cxx       |    2 +-
 sw/source/uibase/config/usrpref.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 227eb3987511e8cba0fb2a16edb99e46ecae0379
Author:     dante <dante19031...@gmail.com>
AuthorDate: Tue Dec 29 19:58:04 2020 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Jul 7 22:12:49 2021 +0200

    Remove warning while building
    
    Operator >>= from any does not guarantee initialization, so compiler warns 
you.
    Value defaluted at 0.
    
    Change-Id: Icecc765be73bb653f0167958e319a1417df6ac86
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108485
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit edc7a8a372a689802a583092ff0da0f60b6dbf97)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118584
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svl/source/items/imageitm.cxx b/svl/source/items/imageitm.cxx
index 7a2d528c1fce..2c2a88600cc9 100644
--- a/svl/source/items/imageitm.cxx
+++ b/svl/source/items/imageitm.cxx
@@ -72,7 +72,7 @@ bool SfxImageItem::PutValue( const css::uno::Any& rVal, 
sal_uInt8 )
         sal_Int16     nVal = sal_Int16();
         if ( aSeq[0] >>= nVal )
             SetValue( nVal );
-        sal_Int16 nTmp;
+        sal_Int16 nTmp = 0;
         aSeq[1] >>= nTmp;
         mnAngle = Degree10(nTmp);
         aSeq[2] >>= mbMirrored;
diff --git a/sw/source/uibase/config/usrpref.cxx 
b/sw/source/uibase/config/usrpref.cxx
index 615098813db2..a896acb30c90 100644
--- a/sw/source/uibase/config/usrpref.cxx
+++ b/sw/source/uibase/config/usrpref.cxx
@@ -233,7 +233,7 @@ void SwContentViewConfig::Load()
                 case 23: m_rParent.SetShowChangesInMargin(bSet); break;// 
"Display/ShowChangesInMargin"
                 case 24:
                 {
-                    sal_Int32 nSet;
+                    sal_Int32 nSet = 0;
                     pValues[nProp] >>= nSet;
                     m_rParent.SetDefaultAnchor(nSet);
                 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to