From 5e028ad5dccc6ff1a9250baf2196f7a2f235e314 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Jun 2017 11:47:53 +0200 Subject: simplify some string handling in tracing calls Change-Id: I0fb76562429e691400a02216019c7f96791cf9b3 Reviewed-on: https://gerrit.libreoffice.org/39159 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/property/propagg.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'comphelper/source/property') diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx index 987fd2e1e323..43f461921fac 100644 --- a/comphelper/source/property/propagg.cxx +++ b/comphelper/source/property/propagg.cxx @@ -598,16 +598,8 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues( catch( const UnknownPropertyException& ) { // by definition of XMultiPropertySet::setPropertyValues, unknown properties are to be ignored - #if OSL_DEBUG_LEVEL > 0 - OStringBuffer aMessage; - aMessage.append( "OPropertySetAggregationHelper::setPropertyValues: unknown property '" ); - aMessage.append( OUStringToOString( _rPropertyNames[0], RTL_TEXTENCODING_ASCII_US ) ); - aMessage.append( "'" ); - aMessage.append( "\n(implementation " ); - aMessage.append( typeid( *this ).name() ); - aMessage.append( ")" ); - OSL_FAIL( aMessage.getStr() ); - #endif + SAL_WARN( "comphelper", "OPropertySetAggregationHelper::setPropertyValues: unknown property: '" + << _rPropertyNames[0] << "', implementation: " << typeid( *this ).name() ); } } else -- cgit