summaryrefslogtreecommitdiff
path: root/svtools/source
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 /svtools/source
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 'svtools/source')
-rw-r--r--svtools/source/graphic/provider.cxx2
-rw-r--r--svtools/source/misc/embedhlp.cxx2
-rw-r--r--svtools/source/misc/embedtransfer.cxx2
-rw-r--r--svtools/source/misc/imap.cxx2
-rw-r--r--svtools/source/misc/imap2.cxx2
-rw-r--r--svtools/source/misc/transfer.cxx4
-rw-r--r--svtools/source/urlobj/inetimg.cxx4
7 files changed, 9 insertions, 9 deletions
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx
index 321818fca2fe..fdfcbc50ae9a 100644
--- a/svtools/source/graphic/provider.cxx
+++ b/svtools/source/graphic/provider.cxx
@@ -830,7 +830,7 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
( aFilterDataSeq.getLength() ? &aFilterDataSeq : nullptr ) );
}
aMemStrm.Seek( STREAM_SEEK_TO_END );
- pOStm->Write( aMemStrm.GetData(), aMemStrm.Tell() );
+ pOStm->WriteBytes( aMemStrm.GetData(), aMemStrm.Tell() );
}
}
}
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index 9c6d5d33b414..9a61bfc7cce0 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -584,7 +584,7 @@ SvStream* EmbeddedObjectRef::GetGraphicStream( bool bUpdate ) const
do
{
nRead = xStream->readBytes ( aSequence, nConstBufferSize );
- pStream->Write( aSequence.getConstArray(), nRead );
+ pStream->WriteBytes(aSequence.getConstArray(), nRead);
}
while ( nRead == nConstBufferSize );
pStream->Seek(0);
diff --git a/svtools/source/misc/embedtransfer.cxx b/svtools/source/misc/embedtransfer.cxx
index 2be8ce8779fb..f1a61847d4ac 100644
--- a/svtools/source/misc/embedtransfer.cxx
+++ b/svtools/source/misc/embedtransfer.cxx
@@ -135,7 +135,7 @@ bool SvEmbedTransferHelper::GetData( const css::datatransfer::DataFlavor& rFlavo
css::uno::Sequence< sal_Int8 > aSeq( nLen );
pStream->Seek( STREAM_SEEK_TO_BEGIN );
- pStream->Read( aSeq.getArray(), nLen );
+ pStream->ReadBytes(aSeq.getArray(), nLen);
if ( bDeleteStream )
delete pStream;
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx
index 544a5ee22a9e..e37763b52a9a 100644
--- a/svtools/source/misc/imap.cxx
+++ b/svtools/source/misc/imap.cxx
@@ -953,7 +953,7 @@ void ImageMap::Read( SvStream& rIStm, const OUString& rBaseURL )
sal_uInt16 nCount;
rIStm.SetEndian( SvStreamEndian::LITTLE );
- rIStm.Read( cMagic, sizeof( cMagic ) );
+ rIStm.ReadBytes(cMagic, sizeof(cMagic));
if ( !memcmp( cMagic, IMAPMAGIC, sizeof( cMagic ) ) )
{
diff --git a/svtools/source/misc/imap2.cxx b/svtools/source/misc/imap2.cxx
index 282117562b42..01e534cf7507 100644
--- a/svtools/source/misc/imap2.cxx
+++ b/svtools/source/misc/imap2.cxx
@@ -505,7 +505,7 @@ sal_uLong ImageMap::ImpDetectFormat( SvStream& rIStm )
sal_uLong nRet = IMAP_FORMAT_BIN;
char cMagic[6];
- rIStm.Read( cMagic, sizeof( cMagic ) );
+ rIStm.ReadBytes(cMagic, sizeof(cMagic));
// if we do not have an internal formats
// we check the format
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 18305d8acd97..64e15ac6a4e4 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -864,7 +864,7 @@ bool TransferableHelper::SetObject( void* pUserObject, SotClipboardFormatId nUse
Sequence< sal_Int8 > aSeq( nLen );
xStm->Seek( STREAM_SEEK_TO_BEGIN );
- xStm->Read( aSeq.getArray(), nLen );
+ xStm->ReadBytes(aSeq.getArray(), nLen);
if( nLen && ( SotExchange::GetFormat( rFlavor ) == SotClipboardFormatId::STRING ) )
{
@@ -2037,7 +2037,7 @@ bool TransferableDataHelper::GetSotStorageStream( const DataFlavor& rFlavor, too
if (aSeq.getLength())
{
rxStream = new SotStorageStream( "" );
- rxStream->Write( aSeq.getConstArray(), aSeq.getLength() );
+ rxStream->WriteBytes( aSeq.getConstArray(), aSeq.getLength() );
rxStream->Seek( 0 );
}
diff --git a/svtools/source/urlobj/inetimg.cxx b/svtools/source/urlobj/inetimg.cxx
index 4bcea5ae65d4..74b5beb1f728 100644
--- a/svtools/source/urlobj/inetimg.cxx
+++ b/svtools/source/urlobj/inetimg.cxx
@@ -43,9 +43,9 @@ void INetImage::Write( SvStream& rOStm, SotClipboardFormatId nFormat ) const
OString sOut(OUStringToOString(sString,
RTL_TEXTENCODING_UTF8));
- rOStm.Write(sOut.getStr(), sOut.getLength());
+ rOStm.WriteBytes(sOut.getStr(), sOut.getLength());
static const sal_Char aEndChar[2] = { 0 };
- rOStm.Write( aEndChar, sizeof( aEndChar ));
+ rOStm.WriteBytes(aEndChar, sizeof(aEndChar));
}
break;