From 9b5dad13b56bdde7c40970351af3da3a2c3c9350 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 13 Oct 2019 08:47:47 +0200 Subject: loplugin:stringadd look for unnecessary temporaries which defeat the *StringConcat optimisation. Also make StringConcat conversions treat a nullptr as an empty string, to match the O*String(char*) constructors. Change-Id: If45f5b4b6a535c97bfeeacd9ec472a7603a52e5b Reviewed-on: https://gerrit.libreoffice.org/80724 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/corereflection/criface.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stoc') 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>(rObj), static_cast(nPos) ); -- cgit