summaryrefslogtreecommitdiff
path: root/cppu/source/typelib
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2012-07-23 21:17:15 +0200
committerArnaud Versini <arnaud.versini@gmail.com>2012-07-24 20:35:21 +0200
commitb8d562018155d7bb961198dc1f1dfd5e7a0d1d62 (patch)
tree0fae92af345bfbac69a8c9a515b5ddd08e61d219 /cppu/source/typelib
parent10f08195b8195640016a6eab42818c662f4541d2 (diff)
Use memset and memcmp insteadof rtl_zeroMemory and rtl_compareMemory in cppu
Change-Id: I88976b215bc23ce5001916ccf123bc3561c2a33a
Diffstat (limited to 'cppu/source/typelib')
-rw-r--r--cppu/source/typelib/typelib.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 06b0b9fc2703..90f7ba6bffdf 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1735,8 +1735,10 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register(
pTDR->pType->nSize = (*ppNewDescription)->nSize;
pTDR->pType->nAlignment = (*ppNewDescription)->nAlignment;
- ::rtl_zeroMemory(
- *ppNewDescription +1, nSize - sizeof( typelib_TypeDescription ) );
+ memset(
+ *ppNewDescription +1,
+ 0,
+ nSize - sizeof( typelib_TypeDescription ) );
if( pTDR->pType->bOnDemand && !(*ppNewDescription)->bOnDemand )
{