diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-18 13:36:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-19 09:59:21 +0100 |
commit | 94d8c0975852d7b12e4c8acf4ab1c7f1c1a73f61 (patch) | |
tree | 1d83a03cca3e821eb88b53146367bb3995c577a5 /sfx2 | |
parent | 5d73752cc7d66edae26392f84e72e32a8cf598ca (diff) |
rework this in terms of read_uInt8s_AsOString
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/sfxhtml.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx index c575b7f755f0..002e2cebcb42 100644 --- a/sfx2/source/bastyp/sfxhtml.cxx +++ b/sfx2/source/bastyp/sfxhtml.cxx @@ -277,11 +277,9 @@ sal_Bool SfxHTMLParser::FinishFileDownload( String& rStr ) ? (xub_StrLen)aStream.Tell() : STRING_MAXLEN; - ByteString sBuffer; - sal_Char* pBuffer = sBuffer.AllocBuffer(nLen); aStream.Seek( 0 ); - aStream.Read((void*)pBuffer, nLen); - rStr = String( S2U(pBuffer) ); + rtl::OString sBuffer = read_uInt8s_AsOString(aStream, nLen); + rStr = S2U(sBuffer); } delete pDLMedium; |