summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/xmlimp.cxx
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/source/writer/exp/xmlimp.cxx
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/source/writer/exp/xmlimp.cxx')
-rw-r--r--writerperfect/source/writer/exp/xmlimp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/writerperfect/source/writer/exp/xmlimp.cxx b/writerperfect/source/writer/exp/xmlimp.cxx
index 6e647ccdadf8..f3a12c761f44 100644
--- a/writerperfect/source/writer/exp/xmlimp.cxx
+++ b/writerperfect/source/writer/exp/xmlimp.cxx
@@ -335,7 +335,7 @@ void XMLOfficeDocContext::HandleFixedLayoutPage(const FixedLayoutPage& rPage, bo
librevenge::RVNGPropertyList aImageProperties;
aImageProperties.insert("librevenge:mime-type", "image/svg+xml");
librevenge::RVNGBinaryData aBinaryData;
- aBinaryData.append(static_cast<const unsigned char*>(aMemoryStream.GetBuffer()),
+ aBinaryData.append(static_cast<const unsigned char*>(aMemoryStream.GetData()),
aMemoryStream.GetSize());
aImageProperties.insert("office:binary-data", aBinaryData);
mrImport.GetGenerator().insertBinaryObject(aImageProperties);
@@ -372,7 +372,7 @@ XMLImport::XMLImport(const uno::Reference<uno::XComponentContext>& xContext,
SvFileStream aStream(aCoverImage, StreamMode::READ);
SvMemoryStream aMemoryStream;
aMemoryStream.WriteStream(aStream);
- aBinaryData.append(static_cast<const unsigned char*>(aMemoryStream.GetBuffer()),
+ aBinaryData.append(static_cast<const unsigned char*>(aMemoryStream.GetData()),
aMemoryStream.GetSize());
librevenge::RVNGPropertyList aCoverImageProperties;
aCoverImageProperties.insert("office:binary-data", aBinaryData);
@@ -433,7 +433,7 @@ PopupState XMLImport::FillPopupData(const OUString& rURL, librevenge::RVNGProper
librevenge::RVNGBinaryData aBinaryData;
SvMemoryStream aMemoryStream;
aMemoryStream.WriteStream(aStream);
- aBinaryData.append(static_cast<const unsigned char*>(aMemoryStream.GetBuffer()),
+ aBinaryData.append(static_cast<const unsigned char*>(aMemoryStream.GetData()),
aMemoryStream.GetSize());
rPropList.insert("office:binary-data", aBinaryData);