diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 18:20:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-26 08:56:47 +0200 |
commit | 979c8c56b7d52fe9a5d4b1fbfdab0adaba04c470 (patch) | |
tree | de5942b227fb6f441e1f36878a030a1b13601ba0 /package/source/xstor | |
parent | c2d139d8fa92e44baf592cd8ce644dc66356e143 (diff) |
loplugin:oncevar in oox..sax
Change-Id: I0fee8bcddaeea48335e3be05761d2ad2c45020e2
Reviewed-on: https://gerrit.libreoffice.org/39238
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/source/xstor')
-rw-r--r-- | package/source/xstor/xstorage.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 5a06602448ca..89dae3f7bfdc 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -2622,9 +2622,6 @@ void SAL_CALL OStorage::copyStorageElementLastCommitTo( if ( m_pData->m_nStorageType == embed::StorageFormats::OFOPXML && aStorName == "_rels" ) throw lang::IllegalArgumentException( THROW_WHERE, uno::Reference< uno::XInterface >(), 1 ); // unacceptable storage name - // it's always possible to read written storage in this implementation - sal_Int32 nStorageMode = embed::ElementModes::READ; - try { SotElement_Impl *pElement = m_pImpl->FindElement( aStorName ); @@ -2639,7 +2636,7 @@ void SAL_CALL OStorage::copyStorageElementLastCommitTo( } if (!pElement->m_xStorage) - m_pImpl->OpenSubStorage( pElement, nStorageMode ); + m_pImpl->OpenSubStorage( pElement, embed::ElementModes::READ ); if (pElement->m_xStorage) { |