summaryrefslogtreecommitdiff
path: root/include/comphelper/unwrapargs.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/unwrapargs.hxx')
-rw-r--r--include/comphelper/unwrapargs.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/comphelper/unwrapargs.hxx b/include/comphelper/unwrapargs.hxx
index a7f7f0001898..77ef0ace16c1 100644
--- a/include/comphelper/unwrapargs.hxx
+++ b/include/comphelper/unwrapargs.hxx
@@ -79,13 +79,13 @@ namespace detail {
}
if( !fromAny( seq[nArg], &v ) )
{
- OUStringBuffer buf;
- buf.append( "Cannot extract ANY { " );
- buf.append( seq[nArg].getValueType().getTypeName() );
- buf.append( " } to " );
- buf.append( ::cppu::UnoType<T>::get().getTypeName() );
- buf.append( u'!' );
- return unwrapArgsError( buf.makeStringAndClear(), nArg, args... );
+ OUString msg =
+ "Cannot extract ANY { " +
+ seq[nArg].getValueType().getTypeName() +
+ " } to " +
+ ::cppu::UnoType<T>::get().getTypeName() +
+ "!";
+ return unwrapArgsError( msg, nArg, args... );
}
return unwrapArgs( seq, ++nArg, args... );
}