Kaydet (Commit) 9faa4e46 authored tarafından Miklos Vajna's avatar Miklos Vajna

comphelper: convert OSL_* to SAL_* in namedvaluecollection

Mainly because it seems we hit this assert several times and right now
it seems harmless.

Change-Id: I9176741dd25f405c9eb49daef9c703cfde4386c4
üst b0ec8d86
...@@ -194,7 +194,7 @@ namespace comphelper ...@@ -194,7 +194,7 @@ namespace comphelper
else if ( i_rWrappedElements >>= aPropertyValue ) else if ( i_rWrappedElements >>= aPropertyValue )
impl_assign( Sequence< PropertyValue >( &aPropertyValue, 1 ) ); impl_assign( Sequence< PropertyValue >( &aPropertyValue, 1 ) );
else else
OSL_ENSURE( !i_rWrappedElements.hasValue(), "NamedValueCollection::impl_assign(Any): unsupported type!" ); SAL_WARN_IF( i_rWrappedElements.hasValue(), "comphelper", "NamedValueCollection::impl_assign(Any): unsupported type!" );
} }
//-------------------------------------------------------------------- //--------------------------------------------------------------------
...@@ -222,7 +222,8 @@ namespace comphelper ...@@ -222,7 +222,8 @@ namespace comphelper
::rtl::OStringBuffer message; ::rtl::OStringBuffer message;
message.append( "NamedValueCollection::impl_assign: encountered a value type which I cannot handle:\n" ); message.append( "NamedValueCollection::impl_assign: encountered a value type which I cannot handle:\n" );
message.append( ::rtl::OUStringToOString( pArgument->getValueTypeName(), RTL_TEXTENCODING_ASCII_US ) ); message.append( ::rtl::OUStringToOString( pArgument->getValueTypeName(), RTL_TEXTENCODING_ASCII_US ) );
OSL_FAIL( message.getStr() ); // Once this is rare, this could be turned into a warning.
SAL_INFO( "comphelper", message.getStr() );
} }
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment