[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - svl/source sw/source

dante (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 7 20:13:28 UTC 2021


 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 <dante19031999 at gmail.com>
AuthorDate: Tue Dec 29 19:58:04 2020 +0100
Commit:     Caolán McNamara <caolanm at 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.grandin at collabora.co.uk>
    (cherry picked from commit edc7a8a372a689802a583092ff0da0f60b6dbf97)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118584
    Reviewed-by: Caolán McNamara <caolanm at 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);
                 }


More information about the Libreoffice-commits mailing list