From 565587eba10a8c4e01d4346669327bd9065c5dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 15 Sep 2011 08:46:28 +0100 Subject: [PATCH] replace ByteString::Fill --- editeng/source/rtf/rtfgrf.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/editeng/source/rtf/rtfgrf.cxx b/editeng/source/rtf/rtfgrf.cxx index bb375b7c3737..4ff9f3506f2b 100644 --- a/editeng/source/rtf/rtfgrf.cxx +++ b/editeng/source/rtf/rtfgrf.cxx @@ -42,6 +42,8 @@ #include +#include + using namespace ::rtl; static sal_uInt8 aPal1[ 2 * 4 ] = { @@ -328,9 +330,8 @@ sal_Bool SvxRTFParser::ReadBmpData( Graphic& rGrf, SvxRTFPictureType& rPicType ) rPicType.eStyle = SvxRTFPictureType::MAC_QUICKDRAW; // Mac-Pict gets a empty header above pTmpFile.reset(new SvCacheStream); - ByteString aStr; - aStr.Fill( 512, '\0' ); - pTmpFile->Write( aStr.GetBuffer(), aStr.Len() ); + std::vector a512Zeros(512, '\0'); + pTmpFile->Write( &a512Zeros[0], a512Zeros.size() ); pFilterNm = "PCT"; } break;