diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 13:29:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-21 08:49:01 +0200 |
commit | 17db60eb46b31b6e4b7e664b01e6f7bb6a3016ab (patch) | |
tree | a2f64eca956aa2daf0e74de31bc2d419f769f2c0 /svl | |
parent | 8a3912c8eb25d1acacbc0a18355f2ca75d418908 (diff) |
loplugin:referencecasting in slideshow..svtools
Change-Id: Id0f0332d5d66c0bce309643bf42059b9bdc7d448
Reviewed-on: https://gerrit.libreoffice.org/75997
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/fsstor/fsstorage.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index 344553b67c5f..6ba2a66baf3b 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -453,10 +453,7 @@ uno::Reference< embed::XStorage > SAL_CALL FSStorage::openStorageElement( throw io::IOException(); // there is no such folder ::ucbhelper::Content aResultContent( aFolderURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ), xDummyEnv, comphelper::getProcessComponentContext() ); - xResult.set( static_cast< OWeakObject* >( new FSStorage( aResultContent, - nStorageMode, - m_pImpl->m_xContext ) ), - uno::UNO_QUERY ); + xResult = new FSStorage( aResultContent, nStorageMode, m_pImpl->m_xContext ); } catch( embed::InvalidStorageException& ) { |