diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2012-11-01 17:47:44 +0100 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@gmail.com> | 2012-11-02 13:02:04 +0000 |
commit | 62e18c4f3c202c5caca6ed5efa61c4e1985240b9 (patch) | |
tree | fa9dcde5a9c3c9a2c879fdc7748aef406cf699d0 /ucb | |
parent | 3cdd4964f086f2c771237be7ad70b68f6e9e92cc (diff) |
Use memcpy instead of rtl_copyMemory in ucb
Change-Id: I1bdb02c6d607a10fee03d3044bad20cb811e9939
Reviewed-on: https://gerrit.libreoffice.org/961
Reviewed-by: Arnaud Versini <arnaud.versini@gmail.com>
Tested-by: Arnaud Versini <arnaud.versini@gmail.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/SerfInputStream.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfSession.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav/SerfInputStream.cxx b/ucb/source/ucp/webdav/SerfInputStream.cxx index d8c72227aed8..a6b97eb71ff1 100644 --- a/ucb/source/ucp/webdav/SerfInputStream.cxx +++ b/ucb/source/ucp/webdav/SerfInputStream.cxx @@ -22,7 +22,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_ucb.hxx" #include "SerfInputStream.hxx" -#include <rtl/memory.h> +#include <string.h> using namespace cppu; using namespace rtl; @@ -54,7 +54,7 @@ SerfInputStream::~SerfInputStream( void ) void SerfInputStream::AddToStream( const char * inBuf, sal_Int32 inLen ) { mInputBuffer.realloc( sal::static_int_cast<sal_Int32>(mLen) + inLen ); - rtl_copyMemory( mInputBuffer.getArray() + mLen, inBuf, inLen ); + memcpy( mInputBuffer.getArray() + mLen, inBuf, inLen ); mLen += inLen; } @@ -91,7 +91,7 @@ sal_Int32 SAL_CALL SerfInputStream::readBytes( aData.realloc( theBytes2Read ); // Write the data - rtl_copyMemory( + memcpy( aData.getArray(), mInputBuffer.getConstArray() + mPos, theBytes2Read ); // Update our stream position for next time diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index bd858b49bbe6..16984f022fce 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -1509,7 +1509,7 @@ SerfSession::getDataFromInputStream( rData.realloc( nPos + nRead ); aBuffer.realloc( nRead ); - rtl_copyMemory( (void*)( rData.getArray() + nPos ), + memcpy( (void*)( rData.getArray() + nPos ), (const void*)aBuffer.getConstArray(), nRead ); nPos += nRead; |