summaryrefslogtreecommitdiff
path: root/writerperfect/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-04 09:15:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-04 15:03:06 +0200
commit1a049bc17c5f5ca524289efb73981292c32c58a1 (patch)
treea81d757bd824f63dda8e6609b2b67c36e2294708 /writerperfect/qa
parente607f1da329a2d4dd91904053d7ff86ac05c77bf (diff)
drop SvMemoryStream::GetBuffer
since it does the same thing as GetData() Change-Id: I18d35aa4e67ad7775987160c021863d0de90179b Reviewed-on: https://gerrit.libreoffice.org/61350 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect/qa')
-rw-r--r--writerperfect/qa/unit/EPUBExportTest.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx
index 90e97ba77799..ecca84410866 100644
--- a/writerperfect/qa/unit/EPUBExportTest.cxx
+++ b/writerperfect/qa/unit/EPUBExportTest.cxx
@@ -286,8 +286,7 @@ void EPUBExportTest::testMimetype()
OString aExpected("application/epub+zip");
CPPUNIT_ASSERT(aMemoryStream.GetSize() > static_cast<sal_uInt64>(38 + aExpected.getLength()));
- OString aActual(static_cast<const char*>(aMemoryStream.GetBuffer()) + 38,
- aExpected.getLength());
+ OString aActual(static_cast<const char*>(aMemoryStream.GetData()) + 38, aExpected.getLength());
// This failed: actual data was some garbage, not the uncompressed mime type.
CPPUNIT_ASSERT_EQUAL(aExpected, aActual);
@@ -907,7 +906,7 @@ void EPUBExportTest::testSVG()
// This failed, there was a '<!DOCTYPE' line between the xml and the svg
// one, causing a validation error.
- OString aActual(static_cast<const char*>(aMemoryStream.GetBuffer()), aExpected.getLength());
+ OString aActual(static_cast<const char*>(aMemoryStream.GetData()), aExpected.getLength());
CPPUNIT_ASSERT_EQUAL(aExpected, aActual);
// This failed, we used the xlink attribute namespace, but we did not