diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-22 15:55:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-30 08:50:31 +0200 |
commit | 2ccde70d60d3a5074faf49260e8fe0ccdb91ff26 (patch) | |
tree | 82555c2aac7ca37c30e1084a7a8069c71fc11fbc /ucbhelper | |
parent | 61ff1d919e317947c769e61eeda7f1bb8132f273 (diff) |
teach redundantcast plugin about functional casts
Change-Id: Iac8ccd17d9e46ebb2cb55db7adb06c469bbd4ea0
Reviewed-on: https://gerrit.libreoffice.org/37910
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/provider/providerhelper.cxx | 5 | ||||
-rw-r--r-- | ucbhelper/source/provider/resultset.cxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx index fee706d11d28..9547ece9a982 100644 --- a/ucbhelper/source/provider/providerhelper.cxx +++ b/ucbhelper/source/provider/providerhelper.cxx @@ -265,9 +265,8 @@ ContentProviderImplHelper::getAdditionalPropertySet( if ( m_pImpl->m_xPropertySetRegistry.is() ) { // Open/create persistent property set. - return uno::Reference< css::ucb::XPersistentPropertySet >( - m_pImpl->m_xPropertySetRegistry->openPropertySet( - rKey, bCreate ) ); + return m_pImpl->m_xPropertySetRegistry->openPropertySet( + rKey, bCreate ); } return uno::Reference< css::ucb::XPersistentPropertySet >(); diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index 3264e9049234..9a8f7bb1bfd8 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -1511,7 +1511,7 @@ XTYPEPROVIDER_IMPL_2( PropertySetInfo, // virtual uno::Sequence< beans::Property > SAL_CALL PropertySetInfo::getProperties() { - return uno::Sequence< beans::Property >( *m_pProps ); + return *m_pProps; } |