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
This commit is contained in:
Noel Grandin 2024-11-11 11:15:03 +02:00
parent cc70c63f8f
commit aa48441b0b

View file

@ -41,9 +41,8 @@ css::uno::UnoInterfaceReference get() {
} }
void set(css::uno::UnoInterfaceReference const & value) { void set(css::uno::UnoInterfaceReference const & value) {
css::uno::UnoInterfaceReference cc(value);
if (!uno_setCurrentContext( if (!uno_setCurrentContext(
cc.m_pUnoI, value.m_pUnoI,
u"" UNO_LB_UNO ""_ustr.pData, nullptr)) u"" UNO_LB_UNO ""_ustr.pData, nullptr))
{ {
throw css::uno::RuntimeException(u"uno_setCurrentContext failed"_ustr); throw css::uno::RuntimeException(u"uno_setCurrentContext failed"_ustr);