diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:59:55 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:59:55 +0000 |
commit | c238327d05d2749a286cf471b3b138627420542a (patch) | |
tree | a74ee53f00f256ba339a357187e28f5dd8fb256c /stoc/source/corereflection/base.hxx | |
parent | 015dbda21f3d6be0f30a1a823657586beb06212a (diff) |
INTEGRATION: CWS warnings01 (1.11.8); FILE MERGED
2006/02/27 14:10:52 sb 1.11.8.2: #i53898# Made code waring-free.
2005/10/31 14:38:04 sb 1.11.8.1: #i53898# Made code warning-free.
Diffstat (limited to 'stoc/source/corereflection/base.hxx')
-rw-r--r-- | stoc/source/corereflection/base.hxx | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index 36125fe72..1ee32480e 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -4,9 +4,9 @@ * * $RCSfile: base.hxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: rt $ $Date: 2005-09-08 07:51:35 $ + * last change: $Author: hr $ $Date: 2006-06-19 23:59:55 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -32,7 +32,6 @@ * MA 02111-1307 USA * ************************************************************************/ - // #define TEST_LIST_CLASSES // #define TRACE(x) OSL_TRACE(x) #define TRACE(x) @@ -427,7 +426,9 @@ inline sal_Bool extract( return ::uno_type_assignData( &rDest, ((typelib_TypeDescription *)pTo)->pWeakRef, const_cast< void * >( rObj.getValue() ), rObj.getValueTypeRef(), - cpp_queryInterface, cpp_acquire, cpp_release ); + reinterpret_cast< uno_QueryInterfaceFunc >(cpp_queryInterface), + reinterpret_cast< uno_AcquireFunc >(cpp_acquire), + reinterpret_cast< uno_ReleaseFunc >(cpp_release) ); } else if (rObj.getValueTypeClass() == TypeClass_TYPE) { @@ -449,7 +450,8 @@ inline sal_Bool coerce_assign( { if (*(XInterface **)pDest) (*(XInterface **)pDest)->release(); - if (*(XInterface **)pDest = xVal.get()) + *(XInterface **)pDest = xVal.get(); + if (*(XInterface **)pDest) (*(XInterface **)pDest)->acquire(); return sal_True; } @@ -460,14 +462,18 @@ inline sal_Bool coerce_assign( return uno_assignData( pDest, pTD, (void *)&rSource, pTD, - cpp_queryInterface, cpp_acquire, cpp_release ); + reinterpret_cast< uno_QueryInterfaceFunc >(cpp_queryInterface), + reinterpret_cast< uno_AcquireFunc >(cpp_acquire), + reinterpret_cast< uno_ReleaseFunc >(cpp_release) ); } else { return uno_type_assignData( pDest, pTD->pWeakRef, (void *)rSource.getValue(), rSource.getValueTypeRef(), - cpp_queryInterface, cpp_acquire, cpp_release ); + reinterpret_cast< uno_QueryInterfaceFunc >(cpp_queryInterface), + reinterpret_cast< uno_AcquireFunc >(cpp_acquire), + reinterpret_cast< uno_ReleaseFunc >(cpp_release) ); } } |