From 36a2db3722b79ed3df075d7f3fa77fb761bcf5a4 Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Sat, 29 Sep 2012 14:47:11 +0200 Subject: Replace usage of rtl_*Memory with equivalent from string.h Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159 Reviewed-on: https://gerrit.libreoffice.org/734 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- ucb/source/ucp/webdav/NeonInputStream.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ucb/source/ucp/webdav/NeonInputStream.cxx') diff --git a/ucb/source/ucp/webdav/NeonInputStream.cxx b/ucb/source/ucp/webdav/NeonInputStream.cxx index 240f41232c2a..882fa2520b4f 100644 --- a/ucb/source/ucp/webdav/NeonInputStream.cxx +++ b/ucb/source/ucp/webdav/NeonInputStream.cxx @@ -26,8 +26,9 @@ * ************************************************************************/ +#include + #include "NeonInputStream.hxx" -#include using namespace cppu; using namespace com::sun::star::io; @@ -57,7 +58,7 @@ NeonInputStream::~NeonInputStream( void ) void NeonInputStream::AddToStream( const char * inBuf, sal_Int32 inLen ) { mInputBuffer.realloc( sal::static_int_cast(mLen) + inLen ); - rtl_copyMemory( mInputBuffer.getArray() + mLen, inBuf, inLen ); + memcpy( mInputBuffer.getArray() + mLen, inBuf, inLen ); mLen += inLen; } @@ -94,7 +95,7 @@ sal_Int32 SAL_CALL NeonInputStream::readBytes( aData.realloc( theBytes2Read ); // Write the data - rtl_copyMemory( + memcpy( aData.getArray(), mInputBuffer.getConstArray() + mPos, theBytes2Read ); // Update our stream position for next time -- cgit