summaryrefslogtreecommitdiffstats
path: root/include/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-16 20:57:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-17 17:55:18 +0100
commit7f902e1697d077dd4a32846ff85f6134a556d528 (patch)
tree4af1cdaf3edf03680641be6af0b512181a658739 /include/cppuhelper
parentcppu: sal_Bool -> bool (diff)
downloadcore-7f902e1697d077dd4a32846ff85f6134a556d528.tar.gz
core-7f902e1697d077dd4a32846ff85f6134a556d528.zip
cppuhelper: sal_Bool -> bool
Change-Id: I6e0e6c1e4880a652ea4d8f0cccf9d8103c2cbbef
Diffstat (limited to 'include/cppuhelper')
-rw-r--r--include/cppuhelper/proptypehlp.hxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/cppuhelper/proptypehlp.hxx b/include/cppuhelper/proptypehlp.hxx
index a848964537e2..11061c560da9 100644
--- a/include/cppuhelper/proptypehlp.hxx
+++ b/include/cppuhelper/proptypehlp.hxx
@@ -59,16 +59,16 @@ inline void SAL_CALL convertPropertyValue( sal_Bool & b , const ::com::sun::st
if( ::com::sun::star::uno::TypeClass_LONG == tc ) {
sal_Int32 i32 = 0;
a >>= i32;
- b = ( sal_Bool )i32;
+ b = i32 != 0;
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c = *(sal_Unicode*) a.getValue();
- b = ( sal_Bool ) c;
+ b = c != 0;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
sal_Int16 i16 = 0;
a >>= i16;
- b = ( sal_Bool ) i16;
+ b = i16 != 0;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
b = *((sal_Bool*)a.getValue());
@@ -76,17 +76,17 @@ inline void SAL_CALL convertPropertyValue( sal_Bool & b , const ::com::sun::st
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
sal_Int8 i8 = 0;
a >>= i8;
- b = ( sal_Bool ) i8;
+ b = i8 != 0;
}
else if ( ::com::sun::star::uno::TypeClass_UNSIGNED_SHORT == tc ) {
sal_uInt16 i16 = 0;
a >>= i16;
- b = ( sal_Bool ) i16;
+ b = i16 != 0;
}
else if ( ::com::sun::star::uno::TypeClass_UNSIGNED_LONG == tc ) {
sal_uInt32 i32 = 0;
a >>= i32;
- b = ( sal_Bool ) i32;
+ b = i32 != 0;
}
else {
throw ::com::sun::star::lang::IllegalArgumentException();
@@ -122,7 +122,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int64 & i , const ::com::sun::st
i = ( sal_Int64 ) i16;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
i = ( sal_Int64 ) b;
}
@@ -176,7 +176,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt64 & i , const ::com::sun::s
i = ( sal_uInt64 ) i16;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
i = ( sal_uInt64 ) b;
}
@@ -221,7 +221,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int32 & i , const ::com::sun::st
i = ( sal_Int32 ) i16;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
i = ( sal_Int32 ) b;
}
@@ -269,7 +269,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt32 & i , const ::com::sun::s
i = ( sal_uInt32 ) i16;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
i = ( sal_uInt32 ) b;
}
@@ -303,7 +303,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int16 & i , const ::com::sun::st
i = ( sal_Int16 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
i = ( sal_Int16 ) b;
}
@@ -336,7 +336,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt16 & i , const ::com::sun::s
i = ( sal_Int16 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
i = ( sal_Int16 ) b;
}
@@ -364,7 +364,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int8 & i , const ::com::sun::sta
a >>= i;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
i = ( sal_Int8 ) b;
}
@@ -413,7 +413,7 @@ inline void SAL_CALL convertPropertyValue( float &f , const ::com::sun::star::un
f = ( float ) i16;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
f = ( float ) b;
}
@@ -480,7 +480,7 @@ inline void SAL_CALL convertPropertyValue( double &d , const ::com::sun::star::u
d = (double) i16;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- sal_Bool b;
+ bool b;
b = *((sal_Bool * )a.getValue());
d = (double) b;
}