From ed0b12f4eadf1f2242f06cbd56804f75376274b1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Nov 2024 12:00:27 +0200 Subject: 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 Tested-by: Jenkins --- sw/source/uibase/shells/drwtxtsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/shells/drwtxtsh.cxx') diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index fb5191131e5a..0b50fe3b94b0 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -284,7 +284,7 @@ void SwDrawTextShell::ExecDrawLingu(SfxRequest const &rReq) case SID_CHINESE_CONVERSION: { //open ChineseTranslationDialog - Reference xContext = comphelper::getProcessComponentContext(); + const Reference& xContext = comphelper::getProcessComponentContext(); if (!xContext.is()) return; -- cgit