summaryrefslogtreecommitdiff
path: root/binaryurp/source/currentcontext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'binaryurp/source/currentcontext.cxx')
-rw-r--r--binaryurp/source/currentcontext.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/binaryurp/source/currentcontext.cxx b/binaryurp/source/currentcontext.cxx
index 6fead065da08..a2d6c1a5d1c2 100644
--- a/binaryurp/source/currentcontext.cxx
+++ b/binaryurp/source/currentcontext.cxx
@@ -44,11 +44,10 @@ css::uno::UnoInterfaceReference get() {
css::uno::UnoInterfaceReference cc;
if (!uno_getCurrentContext(
reinterpret_cast< void ** >(&cc.m_pUnoI),
- OUString(RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO)).pData, 0))
+ OUString(UNO_LB_UNO).pData, 0))
{
throw css::uno::RuntimeException(
- OUString(
- RTL_CONSTASCII_USTRINGPARAM("uno_getCurrentContext failed")),
+ "uno_getCurrentContext failed",
css::uno::Reference< css::uno::XInterface >());
}
return cc;
@@ -58,11 +57,10 @@ void set(css::uno::UnoInterfaceReference const & value) {
css::uno::UnoInterfaceReference cc(value);
if (!uno_setCurrentContext(
cc.m_pUnoI,
- OUString(RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO)).pData, 0))
+ OUString(UNO_LB_UNO).pData, 0))
{
throw css::uno::RuntimeException(
- OUString(
- RTL_CONSTASCII_USTRINGPARAM("uno_setCurrentContext failed")),
+ "uno_setCurrentContext failed",
css::uno::Reference< css::uno::XInterface >());
}
}