summaryrefslogtreecommitdiffstats
path: root/include/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:00:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:19 +0100
commite97b3272668ecbe5454ffc7f394680dbcae27395 (patch)
treee4a36cfa4b270196e6b65ace1d40c26a89ec8dee /include/cppuhelper
parentClean up C-style casts from pointers to void (diff)
downloadcore-e97b3272668ecbe5454ffc7f394680dbcae27395.tar.gz
core-e97b3272668ecbe5454ffc7f394680dbcae27395.zip
Clean up C-style casts from pointers to void
Change-Id: I92c0a6c602e473b796df43b88c98b823de8d9399
Diffstat (limited to 'include/cppuhelper')
-rw-r--r--include/cppuhelper/proptypehlp.hxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/cppuhelper/proptypehlp.hxx b/include/cppuhelper/proptypehlp.hxx
index c93a7961169f..feaa51ba36bc 100644
--- a/include/cppuhelper/proptypehlp.hxx
+++ b/include/cppuhelper/proptypehlp.hxx
@@ -63,7 +63,7 @@ inline void SAL_CALL convertPropertyValue( sal_Bool & b , const ::com::sun::st
b = i32 != 0;
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
- sal_Unicode c = *(sal_Unicode*) a.getValue();
+ sal_Unicode c = *static_cast<sal_Unicode const *>(a.getValue());
b = c != 0;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
@@ -72,7 +72,7 @@ inline void SAL_CALL convertPropertyValue( sal_Bool & b , const ::com::sun::st
b = i16 != 0;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
- b = *((sal_Bool*)a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
sal_Int8 i8 = 0;
@@ -113,7 +113,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int64 & i , const ::com::sun::st
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *(sal_Unicode *)a.getValue();
+ c = *static_cast<sal_Unicode const *>(a.getValue());
i = ( sal_Int64 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
@@ -123,7 +123,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int64 & i , const ::com::sun::st
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
i = ( sal_Int64 ) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
@@ -166,7 +166,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt64 & i , const ::com::sun::s
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *( sal_Unicode * ) a.getValue() ;
+ c = *static_cast<sal_Unicode const *>(a.getValue());
i = ( sal_uInt64 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
@@ -176,7 +176,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt64 & i , const ::com::sun::s
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
i = ( sal_uInt64 ) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
@@ -210,7 +210,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int32 & i , const ::com::sun::st
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *(sal_Unicode*) a.getValue();
+ c = *static_cast<sal_Unicode const *>(a.getValue());
i = ( sal_Int32 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
@@ -220,7 +220,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int32 & i , const ::com::sun::st
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
i = ( sal_Int32 ) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
@@ -257,7 +257,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt32 & i , const ::com::sun::s
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *(sal_Unicode*) a.getValue();
+ c = *static_cast<sal_Unicode const *>(a.getValue());
i = ( sal_uInt32 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
@@ -267,7 +267,7 @@ inline void SAL_CALL convertPropertyValue( sal_uInt32 & i , const ::com::sun::s
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
i = ( sal_uInt32 ) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
@@ -295,12 +295,12 @@ inline void SAL_CALL convertPropertyValue( sal_Int16 & i , const ::com::sun::st
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *(sal_Unicode*) a.getValue();
+ c = *static_cast<sal_Unicode const *>(a.getValue());
i = ( sal_Int16 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
i = ( sal_Int16 ) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
@@ -327,12 +327,12 @@ inline void SAL_CALL convertPropertyValue( sal_uInt16 & i , const ::com::sun::s
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *(sal_Unicode *) a.getValue();
+ c = *static_cast<sal_Unicode const *>(a.getValue());
i = ( sal_Int16 ) c;
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
i = ( sal_Int16 ) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
@@ -359,7 +359,7 @@ inline void SAL_CALL convertPropertyValue( sal_Int8 & i , const ::com::sun::sta
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
i = ( sal_Int8 ) b;
}
else {
@@ -397,7 +397,7 @@ inline void SAL_CALL convertPropertyValue( float &f , const ::com::sun::star::un
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *(sal_Unicode*) a.getValue();
+ c = *static_cast<sal_Unicode const *>(a.getValue());
f = ( float ) c;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
@@ -407,7 +407,7 @@ inline void SAL_CALL convertPropertyValue( float &f , const ::com::sun::star::un
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
f = ( float ) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {
@@ -463,7 +463,7 @@ inline void SAL_CALL convertPropertyValue( double &d , const ::com::sun::star::u
}
else if ( ::com::sun::star::uno::TypeClass_CHAR == tc ) {
sal_Unicode c;
- c = *(sal_Unicode*) a.getValue();
+ c = *static_cast<sal_Unicode const *>(a.getValue());
d = (double) c;
}
else if ( ::com::sun::star::uno::TypeClass_SHORT == tc ) {
@@ -473,7 +473,7 @@ inline void SAL_CALL convertPropertyValue( double &d , const ::com::sun::star::u
}
else if ( ::com::sun::star::uno::TypeClass_BOOLEAN == tc ) {
bool b;
- b = *((sal_Bool * )a.getValue());
+ b = *static_cast<sal_Bool const *>(a.getValue());
d = (double) b;
}
else if ( ::com::sun::star::uno::TypeClass_BYTE == tc ) {