summaryrefslogtreecommitdiff
path: root/chart2/source/inc/CommonFunctors.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 13:12:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 13:12:20 +0200
commitb57f8a945117a8e32d36549a24c87377c54a798e (patch)
treedc621f5f2087e663c0be67ccbe6aee2b88c21943 /chart2/source/inc/CommonFunctors.hxx
parent26655d0909e649f7d7ceb5e5cbb9a26fdc6753b6 (diff)
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I97e238df6fc71367b4a17a5da48ed527c5b57666
Diffstat (limited to 'chart2/source/inc/CommonFunctors.hxx')
-rw-r--r--chart2/source/inc/CommonFunctors.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx
index eb94b1dbbf04..c7bcff16c897 100644
--- a/chart2/source/inc/CommonFunctors.hxx
+++ b/chart2/source/inc/CommonFunctors.hxx
@@ -62,7 +62,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble : public ::std::unary_function< ::co
::com::sun::star::uno::TypeClass eClass( rAny.getValueType().getTypeClass() );
if( eClass == ::com::sun::star::uno::TypeClass_DOUBLE )
{
- fResult = * reinterpret_cast< const double * >( rAny.getValue() );
+ fResult = * static_cast< const double * >( rAny.getValue() );
}
return fResult;
@@ -79,7 +79,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< ::co
::com::sun::star::uno::TypeClass eClass( rAny.getValueType().getTypeClass() );
if( eClass == ::com::sun::star::uno::TypeClass_DOUBLE )
{
- const double* pDouble = reinterpret_cast< const double * >( rAny.getValue() );
+ const double* pDouble = static_cast< const double * >( rAny.getValue() );
if( ::rtl::math::isNan(*pDouble) )
return OUString();
return ::rtl::math::doubleToUString(
@@ -92,7 +92,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< ::co
}
else if( eClass == ::com::sun::star::uno::TypeClass_STRING )
{
- return * reinterpret_cast< const OUString * >( rAny.getValue() );
+ return * static_cast< const OUString * >( rAny.getValue() );
}
return OUString();