diff options
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/model/filter/XMLFilter.cxx | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index 0422216fe9fd..f68081330347 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -91,21 +91,16 @@ uno::Reference< embed::XStorage > lcl_getWriteStorage( } } - if( aMDHelper.ISSET_Storage ) - xStorage.set( aMDHelper.Storage ); - else - { - Sequence< uno::Any > aStorageArgs{ - aMDHelper.ISSET_OutputStream ? uno::Any(aMDHelper.OutputStream) - : uno::Any(aMDHelper.URL), - uno::Any(embed::ElementModes::READWRITE | embed::ElementModes::TRUNCATE), - uno::Any(comphelper::containerToSequence( aPropertiesForStorage )) - }; + Sequence< uno::Any > aStorageArgs{ + aMDHelper.ISSET_OutputStream ? uno::Any(aMDHelper.OutputStream) + : uno::Any(aMDHelper.URL), + uno::Any(embed::ElementModes::READWRITE | embed::ElementModes::TRUNCATE), + uno::Any(comphelper::containerToSequence( aPropertiesForStorage )) + }; - xStorage.set( - xStorageFact->createInstanceWithArguments( aStorageArgs ), - uno::UNO_QUERY_THROW ); - } + xStorage.set( + xStorageFact->createInstanceWithArguments( aStorageArgs ), + uno::UNO_QUERY_THROW ); } // set correct media type at storage |