summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-11 11:15:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-11 15:47:00 +0100
commitaa48441b0bde7df62e338e1f466652fa560804c7 (patch)
tree8ead5d581473c4eaff7dc6e5d55306588c35e944 /binaryurp
parentcc70c63f8f6277edc492700f4b33588591f6485b (diff)
clang-tidy: performance-unnecessary-copy-initialization in binaryurp
Change-Id: I8af73afaf063294786890a71abe97add283289a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176390 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/source/currentcontext.cxx3
1 files changed, 1 insertions, 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);