summaryrefslogtreecommitdiff
path: root/rdbmaker/source/rdbmaker/typeblop.cxx
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-09-29 14:47:11 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-10-01 18:48:05 +0000
commit36a2db3722b79ed3df075d7f3fa77fb761bcf5a4 (patch)
tree838cdec72aeea68c3ad78f8d18535afd5408d43a /rdbmaker/source/rdbmaker/typeblop.cxx
parent053b68a0c7b75eae7d86d4465f65abc6046515ee (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 'rdbmaker/source/rdbmaker/typeblop.cxx')
-rw-r--r--rdbmaker/source/rdbmaker/typeblop.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/rdbmaker/source/rdbmaker/typeblop.cxx b/rdbmaker/source/rdbmaker/typeblop.cxx
index f9acdfd93343..7049da4502be 100644
--- a/rdbmaker/source/rdbmaker/typeblop.cxx
+++ b/rdbmaker/source/rdbmaker/typeblop.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <string.h>
+
#include <rtl/alloc.h>
#include <registry/reflwrit.hxx>
#include <cppuhelper/servicefactory.hxx>
@@ -287,7 +289,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
length = writer.getBlopSize();
*pBlop = (sal_uInt8*)rtl_allocateMemory( length );
- rtl_copyMemory(*pBlop, writer.getBlop(), length);
+ memcpy(*pBlop, writer.getBlop(), length);
}
break;
case TypeClass_MODULE:
@@ -329,7 +331,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
length = writer.getBlopSize();
*pBlop = (sal_uInt8*)rtl_allocateMemory( length );
- rtl_copyMemory(*pBlop, writer.getBlop(), length);
+ memcpy(*pBlop, writer.getBlop(), length);
}
break;
case TypeClass_INTERFACE:
@@ -404,7 +406,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
length = writer.getBlopSize();
*pBlop = (sal_uInt8*)rtl_allocateMemory( length );
- rtl_copyMemory(*pBlop, writer.getBlop(), length);
+ memcpy(*pBlop, writer.getBlop(), length);
}
break;
case TypeClass_STRUCT:
@@ -444,7 +446,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
length = writer.getBlopSize();
*pBlop = (sal_uInt8*)rtl_allocateMemory( length );
- rtl_copyMemory(*pBlop, writer.getBlop(), length);
+ memcpy(*pBlop, writer.getBlop(), length);
}
break;
case TypeClass_ENUM:
@@ -473,7 +475,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
length = writer.getBlopSize();
*pBlop = (sal_uInt8*)rtl_allocateMemory( length );
- rtl_copyMemory(*pBlop, writer.getBlop(), length);
+ memcpy(*pBlop, writer.getBlop(), length);
}
break;
case TypeClass_TYPEDEF:
@@ -488,7 +490,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
0, 0, 0);
length = writer.getBlopSize();
*pBlop = (sal_uInt8*)rtl_allocateMemory( length );
- rtl_copyMemory(*pBlop, writer.getBlop(), length);
+ memcpy(*pBlop, writer.getBlop(), length);
}
break;
default: