diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2000-09-25 13:47:41 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2000-09-25 13:47:41 +0000 |
commit | f938c9220b6da25d4b38414a8e0aac3c57d00c8d (patch) | |
tree | 990a55d85c789a95a71dcc8264fd0f36bbe09f8c /cppu/source/uno/assign.hxx | |
parent | 94b1ae5b994a4e6c189c8d10e2047093f5254404 (diff) |
#78948# any to sequence
Diffstat (limited to 'cppu/source/uno/assign.hxx')
-rw-r--r-- | cppu/source/uno/assign.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cppu/source/uno/assign.hxx b/cppu/source/uno/assign.hxx index aabd48326b7e..4846e5488e22 100644 --- a/cppu/source/uno/assign.hxx +++ b/cppu/source/uno/assign.hxx @@ -2,9 +2,9 @@ * * $RCSfile: assign.hxx,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-09-25 14:47:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -214,6 +214,8 @@ inline sal_Bool __assignData( pSourceTypeDescr = 0; pSourceType = ((uno_Any *)pSource)->pType; pSource = ((uno_Any *)pSource)->pData; + if (pDest == pSource) + return sal_True; } switch (pDestType->eTypeClass) @@ -482,6 +484,8 @@ inline sal_Bool __assignData( } return sal_False; case typelib_TypeClass_SEQUENCE: + if (typelib_TypeClass_SEQUENCE != pSourceType->eTypeClass) + return sal_False; if (*(uno_Sequence **)pSource == *(uno_Sequence **)pDest) // self assignment return sal_True; if (__type_equals( pDestType, pSourceType )) |