summaryrefslogtreecommitdiff
path: root/scripting/source/stringresource/stringresource.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-05 11:23:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-05 14:10:12 +0100
commitc967a7f0130d804a73fa7073c4a1703fcd51bd75 (patch)
tree336872d761fe3e1110b48e8940f91ac20880d831 /scripting/source/stringresource/stringresource.cxx
parent349099b4e0fa59c3f340d3a1fb175db04220708a (diff)
loplugin:reducevarscope in scripting
Change-Id: I214f58c9d0bd8e574e8882234c84f595605d2fe7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105331 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r--scripting/source/stringresource/stringresource.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 217536d66c55..455174f2eff8 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -886,12 +886,11 @@ void StringResourcePersistenceImpl::implStoreAtStorage
Reference< io::XStream > xElementStream =
Storage->openStreamElement( aStreamName, ElementModes::READWRITE );
- OUString aPropName("MediaType");
-
uno::Reference< beans::XPropertySet > xProps( xElementStream, uno::UNO_QUERY );
OSL_ENSURE( xProps.is(), "The StorageStream must implement XPropertySet interface!" );
if ( xProps.is() )
{
+ OUString aPropName("MediaType");
xProps->setPropertyValue( aPropName, uno::makeAny( OUString("text/plain") ) );
aPropName = "UseCommonStoragePasswordEncryption";