summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-06-03 14:45:59 +0200
committerMichael Stahl <mstahl@redhat.com>2016-06-06 18:09:11 +0000
commit62d270116bf34778bf581f21b27fa9cdbff7de0e (patch)
tree0402df0506ab8f6825ef497f27426f01d2e01850 /unotools
parentd0bc637426060593046c8d3a4d01d0b05b052cc5 (diff)
tools: rename SvStream::Read/Write to ReadBytes/WriteBytes
Change-Id: Ib788a30d413436aa03f813aa2fddcbc4d6cd2f9a Reviewed-on: https://gerrit.libreoffice.org/25972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/streaming/streamwrap.cxx6
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/unotools/source/streaming/streamwrap.cxx b/unotools/source/streaming/streamwrap.cxx
index 7356fad4c863..e64957005a03 100644
--- a/unotools/source/streaming/streamwrap.cxx
+++ b/unotools/source/streaming/streamwrap.cxx
@@ -58,7 +58,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(css::uno::Sequence< sal_Int8 >
if (aData.getLength() < nBytesToRead)
aData.realloc(nBytesToRead);
- sal_uInt32 nRead = m_pSvStream->Read(static_cast<void*>(aData.getArray()), nBytesToRead);
+ sal_uInt32 nRead = m_pSvStream->ReadBytes(static_cast<void*>(aData.getArray()), nBytesToRead);
checkError();
// Wenn gelesene Zeichen < MaxLength, css::uno::Sequence anpassen
@@ -195,7 +195,7 @@ OOutputStreamWrapper::~OOutputStreamWrapper() {}
void SAL_CALL OOutputStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& aData) throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
{
- sal_uInt32 nWritten = rStream.Write(aData.getConstArray(),aData.getLength());
+ sal_uInt32 nWritten = rStream.WriteBytes(aData.getConstArray(), aData.getLength());
ErrCode err = rStream.GetError();
if ( (ERRCODE_NONE != err)
|| (nWritten != (sal_uInt32)aData.getLength())
@@ -293,7 +293,7 @@ css::uno::Reference< css::io::XOutputStream > SAL_CALL OStreamWrapper::getOutput
void SAL_CALL OStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& aData) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception)
{
- sal_uInt32 nWritten = m_pSvStream->Write(aData.getConstArray(),aData.getLength());
+ sal_uInt32 nWritten = m_pSvStream->WriteBytes(aData.getConstArray(), aData.getLength());
ErrCode err = m_pSvStream->GetError();
if ( (ERRCODE_NONE != err)
|| (nWritten != (sal_uInt32)aData.getLength())
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index 5193dd814819..9d1af5936ca6 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -165,7 +165,7 @@ throw (css::io::NotConnectedException, css::io::BufferSizeExceededException, css
if (aData.getLength() < nBytesToRead)
aData.realloc(nBytesToRead);
- sal_uInt32 nRead = mpStream->Read(static_cast < void* > ( aData.getArray() ), nBytesToRead);
+ sal_uInt32 nRead = mpStream->ReadBytes(static_cast<void*>(aData.getArray()), nBytesToRead);
checkError();
if (nRead < (sal_Size)aData.getLength())
@@ -262,7 +262,7 @@ throw ( css::io::NotConnectedException, css::io::BufferSizeExceededException, cs
throw css::io::NotConnectedException ( OUString(), const_cast < css::uno::XWeak * > ( static_cast < const css::uno::XWeak * > (this ) ) );
checkConnected();
- sal_uInt32 nWritten = mpStream->Write(aData.getConstArray(),aData.getLength());
+ sal_uInt32 nWritten = mpStream->WriteBytes(aData.getConstArray(), aData.getLength());
checkError();
if ( nWritten != (sal_uInt32)aData.getLength())
throw css::io::BufferSizeExceededException( OUString(),static_cast < css::uno::XWeak * > ( this ) );