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/constr.hxx | |
parent | 824d65702a9946d3952ce57af1a288eaacc2bf1e (diff) |
#88593# any opt: avoiding heap allocation for any sizeof(type) <= sizeof(void *)
Diffstat (limited to 'cppu/source/uno/constr.hxx')
-rw-r--r-- | cppu/source/uno/constr.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cppu/source/uno/constr.hxx b/cppu/source/uno/constr.hxx index fe6eeb40dfba..25e539ab1ce9 100644 --- a/cppu/source/uno/constr.hxx +++ b/cppu/source/uno/constr.hxx @@ -2,9 +2,9 @@ * * $RCSfile: constr.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: pl $ $Date: 2001-05-10 20:12:55 $ + * 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 @@ -158,7 +158,7 @@ inline void __defaultConstructArray( case typelib_TypeClass_ENUM: for (i=0; i < nTotalElements; i++) { - *((int *)pMem + i) = ((typelib_EnumTypeDescription *)pElementType)->nDefaultEnumValue; + *((sal_Int32 *)pMem + i) = ((typelib_EnumTypeDescription *)pElementType)->nDefaultEnumValue; } break; #ifdef CPPU_ASSERTIONS @@ -228,7 +228,7 @@ inline void __defaultConstructData( break; case typelib_TypeClass_STRING: *(rtl_uString **)pMem = 0; - rtl_uString_new( (rtl_uString **)pMem ); + ::rtl_uString_new( (rtl_uString **)pMem ); break; case typelib_TypeClass_TYPE: *(typelib_TypeDescriptionReference **)pMem = __getVoidType(); @@ -239,12 +239,12 @@ inline void __defaultConstructData( case typelib_TypeClass_ENUM: if (pTypeDescr) { - *(int *)pMem = ((typelib_EnumTypeDescription *)pTypeDescr)->nDefaultEnumValue; + *(sal_Int32 *)pMem = ((typelib_EnumTypeDescription *)pTypeDescr)->nDefaultEnumValue; } else { TYPELIB_DANGER_GET( &pTypeDescr, pType ); - *(int *)pMem = ((typelib_EnumTypeDescription *)pTypeDescr)->nDefaultEnumValue; + *(sal_Int32 *)pMem = ((typelib_EnumTypeDescription *)pTypeDescr)->nDefaultEnumValue; TYPELIB_DANGER_RELEASE( pTypeDescr ); } break; |