Kaydet (Commit) 1f90b032 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

OUString::replace() does not modify in-place

Change-Id: I6fa7c64bdd3c7af4b9495831da063ecd917057de
üst 064ef013
......@@ -110,7 +110,7 @@ BinaryOutputStream::writeCharArrayUC( const OUString& rString, rtl_TextEncoding
{
OString sBuf( OUStringToOString( rString, eTextEnc ) );
if( !bAllowNulChars )
sBuf.replace( '\0', '?' );
sBuf = sBuf.replace( '\0', '?' );
writeMemory( static_cast< const void* >( sBuf.getStr() ), sBuf.getLength() );
}
......@@ -119,7 +119,7 @@ BinaryOutputStream::writeUnicodeArray( const ::rtl::OUString& rString, bool bAll
{
OUString sBuf( rString );
if( !bAllowNulChars )
sBuf.replace( '\0', '?' );
sBuf = sBuf.replace( '\0', '?' );
#ifdef OSL_BIGENDIAN
// need a non-const buffer for swapping byte order
sal_Unicode notConst[sBuf.getLength()];
......
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