summaryrefslogtreecommitdiff
path: root/include/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-20 17:20:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-20 17:20:02 +0200
commit0ac092ed0b04ce4ea8b401a56998e36bc2cca402 (patch)
treeaddd42f53c3e35dfc44169b9fe9f6374008b10aa /include/cppuhelper
parent62c047ffb397802c09df9070492e70725928cadf (diff)
Clean up uses of Any::getValue() in cppuhelper
Change-Id: Ibe25c23a273db957905af972dcae64e3a0d3be8a
Diffstat (limited to 'include/cppuhelper')
-rw-r--r--include/cppuhelper/proptypehlp.hxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/cppuhelper/proptypehlp.hxx b/include/cppuhelper/proptypehlp.hxx
index 5169c5b47a5a..9f3dcf41caf5 100644
--- a/include/cppuhelper/proptypehlp.hxx
+++ b/include/cppuhelper/proptypehlp.hxx
@@ -65,7 +65,7 @@ inline void SAL_CALL convertPropertyValue( sal_Bool & b , const css::uno::Any
b = i16 != 0;
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
sal_Int8 i8 = 0;
@@ -122,7 +122,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int64 & i , const css::uno::Any
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
i = ( sal_Int64 ) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
@@ -175,7 +175,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt64 & i , const css::uno::Any
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
i = ( sal_uInt64 ) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
@@ -219,7 +219,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int32 & i , const css::uno::Any
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
i = ( sal_Int32 ) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
@@ -266,7 +266,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt32 & i , const css::uno::Any
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
i = ( sal_uInt32 ) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
@@ -299,7 +299,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int16 & i , const css::uno::Any
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
i = ( sal_Int16 ) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
@@ -331,7 +331,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt16 & i , const css::uno::Any
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
i = ( sal_Int16 ) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
@@ -358,7 +358,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int8 & i , const css::uno::Any &
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
i = ( sal_Int8 ) b;
}
else {
@@ -405,7 +405,7 @@ inline void SAL_CALL convertPropertyValue( float &f , const css::uno::Any &a )
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
f = ( float ) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {
@@ -470,7 +470,7 @@ inline void SAL_CALL convertPropertyValue( double &d , const css::uno::Any &a )
}
else if ( css::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *static_cast<sal_Bool const *>(a.getValue());
+ a >>= b;
d = (double) b;
}
else if ( css::uno::TypeClass_BYTE == tc ) {