diff options
author | dante <dante19031999@gmail.com> | 2020-12-29 19:58:04 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-07-11 13:43:54 +0200 |
commit | ed12987f28696b51467507b97702cf50835cc850 (patch) | |
tree | cf9126fbf79b04515eb99a71b5d20dfeb95e0253 /svl | |
parent | 685b615ffd9e46d891a653736d2115f4a32e20d1 (diff) |
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@collabora.co.uk>
(cherry picked from commit edc7a8a372a689802a583092ff0da0f60b6dbf97)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118584
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/imageitm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |