diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-09 13:59:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-12 07:37:24 +0100 |
commit | 2f5868c4309d49ad495e0763b5b57d1f7f98e377 (patch) | |
tree | ba498138c67436ce30b5d9585353c50a1c5020bf /framework | |
parent | cb34e6083cdc82333d64ad9224e0d25e895d1dae (diff) |
loplugin:redundantfcast look for redundant copies in return statements
Change-Id: I5f416c865dfe1c36018784246a8007452eb42008
Reviewed-on: https://gerrit.libreoffice.org/50996
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/pathsettings.cxx | 3 | ||||
-rw-r--r-- | framework/source/uielement/statusbaritem.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx index 2ccbb899a03a..a4169b48f1f7 100644 --- a/framework/source/services/pathsettings.cxx +++ b/framework/source/services/pathsettings.cxx @@ -1387,8 +1387,7 @@ void SAL_CALL PathSettings::getFastPropertyValue(css::uno::Any& aValue , css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL PathSettings::getPropertySetInfo() { - return css::uno::Reference< css::beans::XPropertySetInfo >( - ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper())); + return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper()); } css::uno::Reference< css::util::XStringSubstitution > PathSettings::fa_getSubstitution() diff --git a/framework/source/uielement/statusbaritem.cxx b/framework/source/uielement/statusbaritem.cxx index a4b02738fe9a..959ea4fbec29 100644 --- a/framework/source/uielement/statusbaritem.cxx +++ b/framework/source/uielement/statusbaritem.cxx @@ -119,7 +119,7 @@ OUString SAL_CALL StatusbarItem::getCommand() if ( m_pStatusBar ) return m_pStatusBar->GetItemOffset( m_nId ); - return ::sal_Int32(0); + return 0; } css::awt::Rectangle SAL_CALL StatusbarItem::getItemRect() |