no need to take a copy of the getProcessComponentContext return value
we can just take a "const &". (found by running clang-tidy with the performance-unnecessary-copy-initialization warning) Change-Id: I20fd208c65303da78170b1ac06c638fdf3aa094b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176267 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
@@ -802,7 +802,7 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam,
|
||||
|
||||
if( bAddExtensionPath )
|
||||
{
|
||||
Reference< XComponentContext > xContext(
|
||||
const Reference< XComponentContext >& xContext(
|
||||
comphelper::getProcessComponentContext() );
|
||||
|
||||
OUString aOUExpandedExtensionPath = Databases::expandURL( aExtensionRegistryPath, xContext );
|
||||
|
||||
Reference in New Issue
Block a user