summaryrefslogtreecommitdiff
path: root/cppu/source
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-09-06 09:25:51 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-09-06 09:25:51 +0000
commit4f6841e867ecdd2162860aaf28c1042029525943 (patch)
treed2e7cc7d25a52223aa6ff20b87088845fdf7de0d /cppu/source
parent3126194e5856d56358c42723662d79386be953f8 (diff)
#91945# added uno_any_clear()
Diffstat (limited to 'cppu/source')
-rw-r--r--cppu/source/uno/any.cxx15
1 files changed, 11 insertions, 4 deletions
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 );
+}
}