From 2f5868c4309d49ad495e0763b5b57d1f7f98e377 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 9 Mar 2018 13:59:52 +0200 Subject: loplugin:redundantfcast look for redundant copies in return statements Change-Id: I5f416c865dfe1c36018784246a8007452eb42008 Reviewed-on: https://gerrit.libreoffice.org/50996 Tested-by: Jenkins Reviewed-by: Noel Grandin --- uui/source/passwordcontainer.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'uui/source') diff --git a/uui/source/passwordcontainer.cxx b/uui/source/passwordcontainer.cxx index 92a54f53fae7..82ee8ddf8b32 100644 --- a/uui/source/passwordcontainer.cxx +++ b/uui/source/passwordcontainer.cxx @@ -417,12 +417,11 @@ uno::Reference< lang::XSingleServiceFactory > PasswordContainerInteractionHandler::createServiceFactory( const uno::Reference< lang::XMultiServiceFactory >& rxServiceMgr ) { - return uno::Reference< lang::XSingleServiceFactory >( - cppu::createOneInstanceFactory( + return cppu::createOneInstanceFactory( rxServiceMgr, PasswordContainerInteractionHandler::getImplementationName_Static(), PasswordContainerInteractionHandler_CreateInstance, - PasswordContainerInteractionHandler::getSupportedServiceNames_Static() ) ); + PasswordContainerInteractionHandler::getSupportedServiceNames_Static() ); } } // namespace uui -- cgit