summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xml_helper/xml_byteseq.cxx4
-rw-r--r--xmlscript/test/imexp.cxx3
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" );