summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-18 13:36:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-19 09:59:21 +0100
commit94d8c0975852d7b12e4c8acf4ab1c7f1c1a73f61 (patch)
tree1d83a03cca3e821eb88b53146367bb3995c577a5 /sfx2
parentrework this in terms of read_uInt8s_AsOString (diff)
downloadcore-94d8c0975852d7b12e4c8acf4ab1c7f1c1a73f61.tar.gz
core-94d8c0975852d7b12e4c8acf4ab1c7f1c1a73f61.zip
rework this in terms of read_uInt8s_AsOString
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/sfxhtml.cxx6
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;