loplugin:passstuffbyref in comphelper
Change-Id: I2c94b6e0bbdce4f4236815df8c4841327a33939e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176053 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
bd8539dfd1
commit
47a1dccd17
3 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ private:
|
|||
void insertEntry(std::unique_lock<std::mutex>&, sal_Int32 Index);
|
||||
|
||||
/// @throws Exception
|
||||
Reference< XIdlReflection > getReflection(std::unique_lock<std::mutex>&);
|
||||
const Reference< XIdlReflection > & getReflection(std::unique_lock<std::mutex>&);
|
||||
|
||||
/** checks if <arg>_nIndex</arg> is a valid index, throws an <type>IllegalArgumentException</type> if not
|
||||
@param _nIndex
|
||||
|
@ -370,7 +370,7 @@ ImplEventAttacherManager::ImplEventAttacherManager( const Reference< XIntrospect
|
|||
}
|
||||
}
|
||||
|
||||
Reference< XIdlReflection > ImplEventAttacherManager::getReflection(std::unique_lock<std::mutex>&)
|
||||
const Reference< XIdlReflection > & ImplEventAttacherManager::getReflection(std::unique_lock<std::mutex>&)
|
||||
{
|
||||
// Do we already have a service? If not, create one.
|
||||
if( !mxCoreReflection.is() )
|
||||
|
|
|
@ -106,7 +106,7 @@ Reference< XComponentContext > getComponentContext(
|
|||
return xRet;
|
||||
}
|
||||
|
||||
Reference< XComponentContext > getProcessComponentContext()
|
||||
const Reference< XComponentContext > & getProcessComponentContext()
|
||||
{
|
||||
static const uno::Reference<XComponentContext> processComponentContext = getComponentContext( getProcessServiceFactory() );
|
||||
return processComponentContext;
|
||||
|
|
|
@ -62,7 +62,7 @@ getComponentContext(
|
|||
* Throws a RuntimeException if no component context can be obtained.
|
||||
*/
|
||||
COMPHELPER_DLLPUBLIC
|
||||
css::uno::Reference< css::uno::XComponentContext >
|
||||
const css::uno::Reference< css::uno::XComponentContext > &
|
||||
getProcessComponentContext();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue