summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 21:44:17 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 21:44:17 +0200
commit0e5898f6a972e4bbe068c5565eb446db41170ba0 (patch)
tree4dd5ffff88e40d9756db554648c559a7d9eedee9 /sw
parent684b0a11040a4f46d9a4971583c21350b6395d18 (diff)
sw test: user parent's parseXmlStream method
Change-Id: I6b50172b636cd8334b5cbfd3986631c1f17dd366
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index 84f445d114e8..a5134dbd957e 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -569,13 +569,8 @@ protected:
uno::Reference<io::XInputStream> xInputStream(xNameAccess->getByName(rStreamName), uno::UNO_QUERY);
boost::shared_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream(xInputStream, true));
- sal_Size nSize = pStream->remainingSize();
- rtl::ByteSequence aBuffer(nSize);
- pStream->Read(aBuffer.getArray(), nSize);
-
- // Parse the XML.
- return xmlParseMemory(reinterpret_cast<const char*>(aBuffer.getArray()), aBuffer.getLength());
+ return parseXmlStream(pStream.get());
}
/**