From 489a0032f4dd6b1cd8b5e2e7c70b1ea626bee0d9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 26 Oct 2012 10:54:38 +0200 Subject: Simplify SAL_INFO usage even further Change-Id: I452319aa627c8de17e87033597a151f186c4361c --- comphelper/source/misc/namedvaluecollection.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index e46d40397b07..70f0796bb429 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -33,9 +33,7 @@ #include #include -#include #include -#include #include #include @@ -216,16 +214,15 @@ namespace comphelper m_pImpl->aValues[ aPropertyValue.Name ] = aPropertyValue.Value; else if ( *pArgument >>= aNamedValue ) m_pImpl->aValues[ aNamedValue.Name ] = aNamedValue.Value; -#if OSL_DEBUG_LEVEL > 0 - else if ( pArgument->hasValue() ) + else { - ::rtl::OStringBuffer message; - message.append( "NamedValueCollection::impl_assign: encountered a value type which I cannot handle:\n" ); - message.append( ::rtl::OUStringToOString( pArgument->getValueTypeName(), RTL_TEXTENCODING_ASCII_US ) ); // Once this is rare, this could be turned into a warning. - SAL_INFO( "comphelper", message.getStr() ); + SAL_INFO_IF( + pArgument->hasValue(), "comphelper", + ("NamedValueCollection::impl_assign: encountered a value" + " type which I cannot handle: " + + pArgument->getValueTypeName())); } -#endif } } -- cgit