diff options
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 3 |
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"; |