summaryrefslogtreecommitdiff
path: root/cppu/source/uno/any.cxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2000-12-08 11:19:45 +0000
committerDaniel Boelzle <dbo@openoffice.org>2000-12-08 11:19:45 +0000
commitd5bcffe1b0fbeb3bd20f4b055336f25b40704035 (patch)
treed623001ed0256a29e57e22cfd455552cc9921a14 /cppu/source/uno/any.cxx
parentd7edd1522d014eee62a053083775cb8e77a0285a (diff)
added uno_type_any_assign(), uno_any_assign()
Diffstat (limited to 'cppu/source/uno/any.cxx')
-rw-r--r--cppu/source/uno/any.cxx36
1 files changed, 34 insertions, 2 deletions
diff --git a/cppu/source/uno/any.cxx b/cppu/source/uno/any.cxx
index 9aa695b891ae..46897298fa4f 100644
--- a/cppu/source/uno/any.cxx
+++ b/cppu/source/uno/any.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: any.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 15:25:52 $
+ * last change: $Author: dbo $ $Date: 2000-12-08 12:19:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,6 +68,38 @@ using namespace cppu;
extern "C"
{
//##################################################################################################
+SAL_DLLEXPORT void SAL_CALL uno_type_any_assign(
+ uno_Any * pDest, void * pSource,
+ typelib_TypeDescriptionReference * pType,
+ uno_AcquireFunc acquire, uno_ReleaseFunc release )
+{
+ __destructAny( pDest, release );
+ if (pType)
+ {
+ __copyConstructAny( pDest, pSource, pType, 0, acquire, 0 );
+ }
+ else
+ {
+ __CONSTRUCT_EMPTY_ANY( (uno_Any *)pDest );
+ }
+}
+//##################################################################################################
+SAL_DLLEXPORT void SAL_CALL uno_any_assign(
+ uno_Any * pDest, void * pSource,
+ typelib_TypeDescription * pTypeDescr,
+ uno_AcquireFunc acquire, uno_ReleaseFunc release )
+{
+ __destructAny( pDest, release );
+ if (pTypeDescr)
+ {
+ __copyConstructAny( pDest, pSource, pTypeDescr->pWeakRef, pTypeDescr, acquire, 0 );
+ }
+ else
+ {
+ __CONSTRUCT_EMPTY_ANY( pDest );
+ }
+}
+//##################################################################################################
SAL_DLLEXPORT void SAL_CALL uno_type_any_construct(
uno_Any * pDest, void * pSource,
typelib_TypeDescriptionReference * pType,