summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/criface.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx
index d71fc12a8dbc..8dd7d55e7fd7 100644
--- a/stoc/source/corereflection/criface.cxx
+++ b/stoc/source/corereflection/criface.cxx
@@ -643,8 +643,8 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > &
IllegalArgumentException aExc(
"cannot coerce argument type during corereflection call:"
"\narg no.: " + OUString::number(nPos)
- + " expected: \"" + OUString(pTD->pTypeName)
- + "\" actual: \"" + OUString(pCppArgs[nPos].getValueTypeRef()->pTypeName)
+ + " expected: \"" + OUString::unacquired(&pTD->pTypeName)
+ + "\" actual: \"" + OUString::unacquired(&pCppArgs[nPos].getValueTypeRef()->pTypeName)
+ "\"",
*o3tl::doAccess<Reference<XInterface>>(rObj), static_cast<sal_Int16>(nPos) );