oox/source/helper/binaryoutputstream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 1f90b032a6d8f2fce49334190e321b81832e3466 Author: Tor Lillqvist <t...@iki.fi> Date: Wed Nov 28 22:55:26 2012 +0200 OUString::replace() does not modify in-place Change-Id: I6fa7c64bdd3c7af4b9495831da063ecd917057de diff --git a/oox/source/helper/binaryoutputstream.cxx b/oox/source/helper/binaryoutputstream.cxx index 88900f1..3cf66a4 100644 --- a/oox/source/helper/binaryoutputstream.cxx +++ b/oox/source/helper/binaryoutputstream.cxx @@ -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()]; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits