diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-04 09:15:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-04 15:03:06 +0200 |
commit | 1a049bc17c5f5ca524289efb73981292c32c58a1 (patch) | |
tree | a81d757bd824f63dda8e6609b2b67c36e2294708 /sw | |
parent | e607f1da329a2d4dd91904053d7ff86ac05c77bf (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 'sw')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/edit/edglss.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 12c3e08cb150..48a0477cd67b 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -967,7 +967,7 @@ void SwUiWriterTest::testExportRTF() SwWriter aWrt(aStream, *xClpDoc); aWrt.Write(xWrt); - OString aData(static_cast<const sal_Char*>(aStream.GetBuffer()), aStream.GetSize()); + OString aData(static_cast<const sal_Char*>(aStream.GetData()), aStream.GetSize()); //Amusingly eventually there was a commit id with "ccc" in it, and so the rtf contained //{\*\generator LibreOfficeDev/4.4.0.0.alpha0$Linux_X86_64 LibreOffice_project/f70664ccc6837f2cc21a29bb4f44e41e100efe6b} diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx index 2949a095f592..3ece061f823c 100644 --- a/sw/source/core/edit/edglss.cxx +++ b/sw/source/core/edit/edglss.cxx @@ -311,7 +311,7 @@ bool SwEditShell::GetSelectedText( OUString &rBuf, ParaBreakType nHndlParaBrk ) { aStream.WriteUInt16( '\0' ); - const sal_Unicode *p = static_cast<sal_Unicode const *>(aStream.GetBuffer()); + const sal_Unicode *p = static_cast<sal_Unicode const *>(aStream.GetData()); if (p) rBuf = OUString(p); else |