diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2001-06-29 10:10:47 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2001-06-29 10:10:47 +0000 |
commit | cf0cf8d73af9d0071500dfa98e26c55732cc4add (patch) | |
tree | d7e9e378091c996da8fd374a8edf9c52c3043b18 /cppu/source/uno/assign.hxx | |
parent | 824d65702a9946d3952ce57af1a288eaacc2bf1e (diff) |
#88593# any opt: avoiding heap allocation for any sizeof(type) <= sizeof(void *)
Diffstat (limited to 'cppu/source/uno/assign.hxx')
-rw-r--r-- | cppu/source/uno/assign.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cppu/source/uno/assign.hxx b/cppu/source/uno/assign.hxx index 95b3d92bdb9f..fc4296449946 100644 --- a/cppu/source/uno/assign.hxx +++ b/cppu/source/uno/assign.hxx @@ -2,9 +2,9 @@ * * $RCSfile: assign.hxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: dbo $ $Date: 2001-06-25 08:32:01 $ + * last change: $Author: dbo $ $Date: 2001-06-29 11:06:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -243,7 +243,7 @@ inline sal_Bool __assignArray( for (i=0; i < nTotalElements; i++) { ::typelib_typedescriptionreference_release( *((typelib_TypeDescriptionReference **)pDest + i) ); - TYPE_ACQUIRE( + __TYPE_ACQUIRE( *((typelib_TypeDescriptionReference **)pDest + i) = *((typelib_TypeDescriptionReference **)pSource + i) ); } @@ -261,7 +261,7 @@ inline sal_Bool __assignArray( case typelib_TypeClass_ENUM: for (i=0; i < nTotalElements; i++) { - *((int *)pDest + i) = *((int *)pSource + i); + *((sal_Int32 *)pDest + i) = *((sal_Int32 *)pSource + i); } bRet = sal_True; break; @@ -540,7 +540,7 @@ inline sal_Bool __assignData( { case typelib_TypeClass_TYPE: ::typelib_typedescriptionreference_release( *(typelib_TypeDescriptionReference **)pDest ); - TYPE_ACQUIRE( + __TYPE_ACQUIRE( *(typelib_TypeDescriptionReference **)pDest = *(typelib_TypeDescriptionReference **)pSource ); return sal_True; } @@ -552,7 +552,7 @@ inline sal_Bool __assignData( case typelib_TypeClass_ENUM: if (__type_equals( pDestType, pSourceType )) { - *(int *)pDest = *(int *)pSource; + *(sal_Int32 *)pDest = *(sal_Int32 *)pSource; return sal_True; } return sal_False; |