diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2001-09-06 09:25:51 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2001-09-06 09:25:51 +0000 |
commit | 4f6841e867ecdd2162860aaf28c1042029525943 (patch) | |
tree | d2e7cc7d25a52223aa6ff20b87088845fdf7de0d /cppu | |
parent | 3126194e5856d56358c42723662d79386be953f8 (diff) |
#91945# added uno_any_clear()
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/inc/uno/any2.h | 14 | ||||
-rw-r--r-- | cppu/source/uno/any.cxx | 15 | ||||
-rwxr-xr-x | cppu/util/cppu.map | 1 |
3 files changed, 24 insertions, 6 deletions
diff --git a/cppu/inc/uno/any2.h b/cppu/inc/uno/any2.h index f92f94416d2b..85703ee273e3 100644 --- a/cppu/inc/uno/any2.h +++ b/cppu/inc/uno/any2.h @@ -2,9 +2,9 @@ * * $RCSfile: any2.h,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: dbo $ $Date: 2001-08-21 09:17:07 $ + * last change: $Author: dbo $ $Date: 2001-09-06 10:25:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -201,6 +201,16 @@ void SAL_CALL uno_any_destruct( uno_Any * pValue, uno_ReleaseFunc release ) SAL_THROW_EXTERN_C(); +/** Sets value to void. + + @param pValue pointer to any + @param release function called each time an interface needs to be released; + defaults (0) to uno +*/ +void SAL_CALL uno_any_clear( + uno_Any * pValue, uno_ReleaseFunc release ) + SAL_THROW_EXTERN_C(); + #ifdef __cplusplus } #endif diff --git a/cppu/source/uno/any.cxx b/cppu/source/uno/any.cxx index b21331d8198c..31ebb33509b6 100644 --- a/cppu/source/uno/any.cxx +++ b/cppu/source/uno/any.cxx @@ -2,9 +2,9 @@ * * $RCSfile: any.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: dbo $ $Date: 2001-03-28 10:46:10 $ + * last change: $Author: dbo $ $Date: 2001-09-06 10:25:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -81,7 +81,7 @@ void SAL_CALL uno_type_any_assign( } else { - __CONSTRUCT_EMPTY_ANY( (uno_Any *)pDest ); + __CONSTRUCT_EMPTY_ANY( pDest ); } } //################################################################################################## @@ -114,7 +114,7 @@ void SAL_CALL uno_type_any_construct( } else { - __CONSTRUCT_EMPTY_ANY( (uno_Any *)pDest ); + __CONSTRUCT_EMPTY_ANY( pDest ); } } //################################################################################################## @@ -171,4 +171,11 @@ void SAL_CALL uno_any_destruct( uno_Any * pValue, uno_ReleaseFunc release ) { __destructAny( pValue, release ); } +//################################################################################################## +void SAL_CALL uno_any_clear( uno_Any * pValue, uno_ReleaseFunc release ) + SAL_THROW_EXTERN_C() +{ + __destructAny( pValue, release ); + __CONSTRUCT_EMPTY_ANY( pValue ); +} } diff --git a/cppu/util/cppu.map b/cppu/util/cppu.map index e6dd248aca82..5e20ab3a4164 100755 --- a/cppu/util/cppu.map +++ b/cppu/util/cppu.map @@ -55,6 +55,7 @@ UDK_3_0_0 { uno_any_constructAndConvert; uno_type_any_constructAndConvert; uno_any_destruct; + uno_any_clear; uno_sequence_assign; uno_type_sequence_assign; |