summaryrefslogtreecommitdiff
path: root/cppu/source/uno
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
parentdddee54f568beea58284a5345515e0cd1e584fb6 (diff)
exact boolean handling
Diffstat (limited to 'cppu/source/uno')
-rw-r--r--cppu/source/uno/assign.hxx6
-rw-r--r--cppu/source/uno/copy.hxx8
2 files changed, 7 insertions, 7 deletions
diff --git a/cppu/source/uno/assign.hxx b/cppu/source/uno/assign.hxx
index 9fdf257b6d61..2d377de5e26f 100644
--- a/cppu/source/uno/assign.hxx
+++ b/cppu/source/uno/assign.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: assign.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * 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
@@ -244,7 +244,7 @@ inline sal_Bool __assignData(
switch (pSourceType->eTypeClass)
{
case typelib_TypeClass_BOOLEAN:
- *(sal_Bool *)pDest = *(sal_Bool *)pSource;
+ *(sal_Bool *)pDest = (*(sal_Bool *)pSource != sal_False);
return sal_True;
}
return sal_False;
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;