svl/source/items/imageitm.cxx | 2 +- sw/source/uibase/config/usrpref.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit edc7a8a372a689802a583092ff0da0f60b6dbf97 Author: dante <dante19031...@gmail.com> AuthorDate: Tue Dec 29 19:58:04 2020 +0100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Jan 2 15:27:38 2021 +0100 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> 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 e08b4dfd3699..a376d29eaad1 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -235,7 +235,7 @@ void SwContentViewConfig::Load() case 24: m_rParent.SetShowChangesInMargin(bSet); break;// "Display/ShowChangesInMargin" case 25: { - 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