diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-15 08:46:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-15 11:23:37 +0100 |
commit | 565587eba10a8c4e01d4346669327bd9065c5dfa (patch) | |
tree | e5b16325322e89a0c214ed75d5db3815ec25137a | |
parent | callcatcher: some unused code (diff) | |
download | core-565587eba10a8c4e01d4346669327bd9065c5dfa.tar.gz core-565587eba10a8c4e01d4346669327bd9065c5dfa.zip |
replace ByteString::Fill
-rw-r--r-- | editeng/source/rtf/rtfgrf.cxx | 7 |
1 files 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 <editeng/svxrtf.hxx> +#include <vector> + 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<char> a512Zeros(512, '\0'); + pTmpFile->Write( &a512Zeros[0], a512Zeros.size() ); pFilterNm = "PCT"; } break; |