From 62633dfe026bc3badf7066e5fb454036bae9cfdc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Apr 2016 12:08:00 +0200 Subject: clang-tidy performance-unnecessary-value-param in various Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907 Reviewed-on: https://gerrit.libreoffice.org/24019 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/inspect/introspection.cxx | 2 +- stoc/source/invocation/invocation.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'stoc/source') diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index 1fff94f60b11..c755eef4e90b 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -96,7 +96,7 @@ typedef WeakImplHelper< XIntrospectionAccess, XMaterialHolder, XExactName, // Method to assert, if a class is derived from another class -bool isDerivedFrom( Reference xToTestClass, Reference xDerivedFromClass ) +bool isDerivedFrom( const Reference& xToTestClass, const Reference& xDerivedFromClass ) { Sequence< Reference > aClassesSeq = xToTestClass->getSuperclasses(); const Reference* pClassesArray = aClassesSeq.getConstArray(); diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx index 9f2c4c0fc06d..370478f2a470 100644 --- a/stoc/source/invocation/invocation.cxx +++ b/stoc/source/invocation/invocation.cxx @@ -204,7 +204,7 @@ private: void getInfoSequenceImpl( Sequence< OUString >* pStringSeq, Sequence< InvocationInfo >* pInfoSeq ); void fillInfoForNameAccess( InvocationInfo& rInfo, const OUString& aName ); static void fillInfoForProperty( InvocationInfo& rInfo, const Property& rProp ); - static void fillInfoForMethod( InvocationInfo& rInfo, const Reference< XIdlMethod > xMethod ); + static void fillInfoForMethod( InvocationInfo& rInfo, const Reference< XIdlMethod >& xMethod ); Reference xTypeConverter; Reference xIntrospection; @@ -960,7 +960,7 @@ void Invocation_Impl::fillInfoForProperty void Invocation_Impl::fillInfoForMethod ( InvocationInfo& rInfo, - const Reference< XIdlMethod > xMethod + const Reference< XIdlMethod >& xMethod ) { rInfo.aName = xMethod->getName(); -- cgit