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 --- binaryurp/source/writer.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'binaryurp') diff --git a/binaryurp/source/writer.cxx b/binaryurp/source/writer.cxx index 664208a517ab..dbbaf85e6c4c 100644 --- a/binaryurp/source/writer.cxx +++ b/binaryurp/source/writer.cxx @@ -21,13 +21,13 @@ #include #include +#include #include "com/sun/star/connection/XConnection.hpp" #include "com/sun/star/lang/WrappedTargetRuntimeException.hpp" #include "com/sun/star/uno/XCurrentContext.hpp" #include "cppuhelper/exc_hlp.hxx" #include "osl/mutex.hxx" -#include "rtl/memory.h" #include "uno/dispatcher.hxx" #include "binaryany.hxx" @@ -421,10 +421,10 @@ void Writer::sendMessage(std::vector< unsigned char > const & buffer) { css::uno::Sequence< sal_Int8 > s( static_cast< sal_Int32 >(header.size() + k)); OSL_ASSERT(!header.empty()); - rtl_copyMemory( + memcpy( s.getArray(), &header[0], static_cast< sal_Size >(header.size())); for (;;) { - rtl_copyMemory(s.getArray() + s.getLength() - k, p, k); + memcpy(s.getArray() + s.getLength() - k, p, k); try { bridge_->getConnection()->write(s); } catch (const css::io::IOException & e) { -- cgit v1.2.3