summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);