From 4c8d29f4f26bfa30689b2b98414fe874225b9a2e Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 9 Apr 2014 09:39:06 +0200 Subject: html export: Simplify & speed-up the test. Change-Id: I619e4441898fe10e319d9f95413f078003364579 --- sw/qa/extras/htmlexport/htmlexport.cxx | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'sw/qa') diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx b/sw/qa/extras/htmlexport/htmlexport.cxx index 18b28627058d..4e42cb417e95 100644 --- a/sw/qa/extras/htmlexport/htmlexport.cxx +++ b/sw/qa/extras/htmlexport/htmlexport.cxx @@ -13,12 +13,16 @@ #include #include +#include + #include #include #include #include +using namespace rtl; + class Test : public SwModelTestBase { private: @@ -34,19 +38,13 @@ protected: htmlDocPtr parseHtml() { SvFileStream aFileStream(m_aTempFile.GetURL(), STREAM_READ); - aFileStream.Seek(STREAM_SEEK_TO_END); - sal_Size nSize = aFileStream.Tell(); - aFileStream.Seek(STREAM_SEEK_TO_BEGIN); - OStringBuffer aDocument(nSize); + sal_Size nSize = aFileStream.remainingSize(); - char cCharacter; - for (sal_Size i = 0; i(aBuffer.getArray()), NULL); } private: -- cgit