diff options
author | Noel <noelgrandin@gmail.com> | 2020-09-30 09:39:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-30 11:48:48 +0200 |
commit | 7ced53424a21ab264374d97aacdfb4ec166c8171 (patch) | |
tree | a119f33d08617939ed0a8c8dc4870c7832443506 /svx/source/xoutdev/_xoutbmp.cxx | |
parent | 6b709ad5d46dc33f29ec28183cea40cf9e77e2af (diff) |
loplugin:reducevarscope in svx
Change-Id: I88fdaa74c4944f9ffc81db6df08a29283362375a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103647
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/xoutdev/_xoutbmp.cxx')
-rw-r--r-- | svx/source/xoutdev/_xoutbmp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index 38fc3db95a00..bff4092d9f6e 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -112,7 +112,6 @@ ErrCode XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileName, OUString aExt; GraphicFilter& rFilter = GraphicFilter::GetGraphicFilter(); ErrCode nErr = ERRCODE_GRFILTER_FILTERERROR; - sal_uInt16 nFilter = GRFILTER_FORMAT_NOTFOUND; bool bTransparent = rGraphic.IsTransparent(), bAnimated = rGraphic.IsAnimated(); DBG_ASSERT( aURL.GetProtocol() != INetProtocol::NotValid, "XOutBitmap::WriteGraphic(...): invalid URL" ); @@ -221,7 +220,7 @@ ErrCode XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileName, if( bWriteTransGrf ) aFilter = FORMAT_GIF; - nFilter = rFilter.GetExportFormatNumberForShortName( aFilter ); + sal_uInt16 nFilter = rFilter.GetExportFormatNumberForShortName( aFilter ); if( GRFILTER_FORMAT_NOTFOUND == nFilter ) { |