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 /xmlscript | |
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 'xmlscript')
-rw-r--r-- | xmlscript/source/xml_helper/xml_byteseq.cxx | 4 | ||||
-rw-r--r-- | xmlscript/test/imexp.cxx | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx index dc90b75723bb..b6dee8dc59c5 100644 --- a/xmlscript/source/xml_helper/xml_byteseq.cxx +++ b/xmlscript/source/xml_helper/xml_byteseq.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <rtl/memory.h> +#include <string.h> #include <cppuhelper/implbase1.hxx> #include <xmlscript/xml_helper.hxx> @@ -129,7 +129,7 @@ void BSeqOutputStream::writeBytes( Sequence< sal_Int8 > const & rData ) { sal_Int32 nPos = _seq->getLength(); _seq->realloc( nPos + rData.getLength() ); - ::rtl_copyMemory( (char *)_seq->getArray() + nPos, + memcpy( (char *)_seq->getArray() + nPos, (char const *)rData.getConstArray(), rData.getLength() ); } diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx index 0b1c90c9deca..42cc8851a86c 100644 --- a/xmlscript/test/imexp.cxx +++ b/xmlscript/test/imexp.cxx @@ -19,7 +19,6 @@ #include <stdio.h> -#include <rtl/memory.h> #include "osl/file.h" #include <rtl/ustrbuf.hxx> @@ -138,7 +137,7 @@ void exportToFile( sal_Int32 nPos = bytes.getLength(); bytes.realloc( nPos + nRead ); - ::rtl_copyMemory( bytes.getArray() + nPos, readBytes.getConstArray(), (sal_uInt32)nRead ); + memcpy( bytes.getArray() + nPos, readBytes.getConstArray(), (sal_uInt32)nRead ); } FILE * f = ::fopen( fname, "w" ); |