From 2a1fb4401da16f6a18c0bd05fe4b460a3048f9b5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Dec 2017 14:23:16 +0200 Subject: loplugin:passstuffbyref improved returns improve the detection of stuff we can return by const &, instead of by copying Change-Id: I479ae89d0413125a8295cc3cddbc0017ed61ed69 Reviewed-on: https://gerrit.libreoffice.org/46915 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/source/propertysetmixin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx index 32ede83068c0..8469f1a7c51d 100644 --- a/cppuhelper/source/propertysetmixin.cxx +++ b/cppuhelper/source/propertysetmixin.cxx @@ -363,7 +363,7 @@ public: css::uno::Sequence< rtl::OUString > const & absentOptional, css::uno::Type const & type); - rtl::OUString translateHandle( + rtl::OUString const & translateHandle( css::uno::Reference< css::uno::XInterface > const & object, sal_Int32 handle) const; @@ -448,7 +448,7 @@ PropertySetMixinImpl::Impl::Impl( std::copy(handleNames.begin(), handleNames.end(), handleMap.getArray()); } -rtl::OUString PropertySetMixinImpl::Impl::translateHandle( +rtl::OUString const & PropertySetMixinImpl::Impl::translateHandle( css::uno::Reference< css::uno::XInterface > const & object, sal_Int32 handle) const { -- cgit