diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2012-09-29 14:47:11 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-10-01 18:48:05 +0000 |
commit | 36a2db3722b79ed3df075d7f3fa77fb761bcf5a4 (patch) | |
tree | 838cdec72aeea68c3ad78f8d18535afd5408d43a /unoxml | |
parent | 053b68a0c7b75eae7d86d4465f65abc6046515ee (diff) |
Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 3 | ||||
-rw-r--r-- | unoxml/source/dom/node.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index 37f9b3f7a5d1..cbfe97a7eb71 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -29,7 +29,6 @@ #include <boost/shared_ptr.hpp> #include <rtl/alloc.h> -#include <rtl/memory.h> #include <rtl/ustrbuf.hxx> #include <comphelper/processfactory.hxx> @@ -210,7 +209,7 @@ namespace DOM int nread = pctx->rInputStream->readBytes(chunk, len); // copy bytes to the provided buffer - rtl_copyMemory(buffer, chunk.getConstArray(), nread); + memcpy(buffer, chunk.getConstArray(), nread); return nread; } catch (const com::sun::star::uno::Exception& ex) { (void) ex; diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index 39fe729c9083..3fcb3dacfdc7 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -1033,7 +1033,7 @@ namespace DOM throw (RuntimeException) { if ((rId.getLength() == 16) && - (0 == rtl_compareMemory(theCNodeUnoTunnelId::get().getSeq().getConstArray(), + (0 == memcmp(theCNodeUnoTunnelId::get().getSeq().getConstArray(), rId.getConstArray(), 16))) { return ::sal::static_int_cast< sal_Int64 >( |