summaryrefslogtreecommitdiff
path: root/cppu/source/uno/copy.hxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-03-12 11:03:40 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-03-12 11:03:40 +0000
commit944d47ba74f86998fef010169359b2efecf58978 (patch)
treeb9ebdd7d3a02e317e6ed089d9a6a676b8c84821f /cppu/source/uno/copy.hxx
parentdddee54f568beea58284a5345515e0cd1e584fb6 (diff)
exact boolean handling
Diffstat (limited to 'cppu/source/uno/copy.hxx')
-rw-r--r--cppu/source/uno/copy.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppu/source/uno/copy.hxx b/cppu/source/uno/copy.hxx
index 2d6b1ed1616b..57a1cd2204fd 100644
--- a/cppu/source/uno/copy.hxx
+++ b/cppu/source/uno/copy.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: copy.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: dbo $ $Date: 2001-03-09 12:10:57 $
+ * last change: $Author: dbo $ $Date: 2001-03-12 12:03:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -165,7 +165,7 @@ inline void __copyConstructAnyFromData(
break;
case typelib_TypeClass_BOOLEAN:
pDestAny->pData = ::rtl_allocateMemory( sizeof(sal_Bool) );
- *(sal_Bool *)pDestAny->pData = *(sal_Bool *)pSource;
+ *(sal_Bool *)pDestAny->pData = (*(sal_Bool *)pSource != sal_False);
break;
case typelib_TypeClass_BYTE:
pDestAny->pData = ::rtl_allocateMemory( sizeof(sal_Int8) );
@@ -602,7 +602,7 @@ inline void __copyConstructData(
*(sal_Unicode *)pDest = *(sal_Unicode *)pSource;
break;
case typelib_TypeClass_BOOLEAN:
- *(sal_Bool *)pDest = *(sal_Bool *)pSource;
+ *(sal_Bool *)pDest = (*(sal_Bool *)pSource != sal_False);
break;
case typelib_TypeClass_BYTE:
*(sal_Int8 *)pDest = *(sal_Int8 *)pSource;