From 1a049bc17c5f5ca524289efb73981292c32c58a1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 4 Oct 2018 09:15:18 +0200 Subject: 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 --- writerperfect/qa/unit/EPUBExportTest.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'writerperfect/qa/unit') 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(38 + aExpected.getLength())); - OString aActual(static_cast(aMemoryStream.GetBuffer()) + 38, - aExpected.getLength()); + OString aActual(static_cast(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 '(aMemoryStream.GetBuffer()), aExpected.getLength()); + OString aActual(static_cast(aMemoryStream.GetData()), aExpected.getLength()); CPPUNIT_ASSERT_EQUAL(aExpected, aActual); // This failed, we used the xlink attribute namespace, but we did not -- cgit