From aa48441b0bde7df62e338e1f466652fa560804c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Nov 2024 11:15:03 +0200 Subject: [PATCH] clang-tidy: performance-unnecessary-copy-initialization in binaryurp Change-Id: I8af73afaf063294786890a71abe97add283289a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176390 Reviewed-by: Noel Grandin Tested-by: Jenkins --- binaryurp/source/currentcontext.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/binaryurp/source/currentcontext.cxx b/binaryurp/source/currentcontext.cxx index 530525907686..aadefdd51a44 100644 --- a/binaryurp/source/currentcontext.cxx +++ b/binaryurp/source/currentcontext.cxx @@ -41,9 +41,8 @@ css::uno::UnoInterfaceReference get() { } void set(css::uno::UnoInterfaceReference const & value) { - css::uno::UnoInterfaceReference cc(value); if (!uno_setCurrentContext( - cc.m_pUnoI, + value.m_pUnoI, u"" UNO_LB_UNO ""_ustr.pData, nullptr)) { throw css::uno::RuntimeException(u"uno_setCurrentContext failed"_ustr);