summaryrefslogtreecommitdiff
path: root/unotools/source/streaming/streamwrap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/streaming/streamwrap.cxx')
-rw-r--r--unotools/source/streaming/streamwrap.cxx6
1 files changed, 3 insertions, 3 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())