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/xml/xmlxtexp.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/xml/xmlxtexp.cxx')
-rw-r--r-- | svx/source/xml/xmlxtexp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx index 195ebf9c8903..f9407cb46698 100644 --- a/svx/source/xml/xmlxtexp.cxx +++ b/svx/source/xml/xmlxtexp.cxx @@ -200,11 +200,9 @@ bool SvxXMLXTableExportComponent::save( bool bRet = false; std::unique_ptr<SfxMedium> pMedium; rtl::Reference<SvXMLGraphicHelper> xGraphicHelper; - sal_Int32 eCreate = embed::ElementModes::WRITE | embed::ElementModes::TRUNCATE; INetURLObject aURLObj( rURL ); bool bToStorage = aURLObj.GetProtocol() == INetProtocol::NotValid; // a relative path - bool bSaveAsStorage = xTable->getElementType() == cppu::UnoType<awt::XBitmap>::get(); if( pOptName ) @@ -220,6 +218,7 @@ bool SvxXMLXTableExportComponent::save( uno::Reference < io::XOutputStream > xOut; uno::Reference<embed::XStorage > xSubStorage; uno::Reference<XGraphicStorageHandler> xGraphicStorageHandler; + const sal_Int32 eCreate = embed::ElementModes::WRITE | embed::ElementModes::TRUNCATE; if( !bToStorage || !xStorage.is() ) { // local URL -> SfxMedium route |