diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:12:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:12:34 +0200 |
commit | 581c5075bbbb8068e2285c3392b712f41083cfb4 (patch) | |
tree | 47888b492e4439348add7b342c29bb1e7e044fd7 /include/comphelper | |
parent | b57f8a945117a8e32d36549a24c87377c54a798e (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I062024d4768374e319b6c67ed8c7abcc89f9d552
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/extract.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/uno3.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/comphelper/extract.hxx b/include/comphelper/extract.hxx index bbd45db64d9e..08e7a17cc1c6 100644 --- a/include/comphelper/extract.hxx +++ b/include/comphelper/extract.hxx @@ -57,7 +57,7 @@ inline bool SAL_CALL enum2int( sal_Int32 & rnEnum, const ::com::sun::star::uno:: { if (rAny.getValueTypeClass() == ::com::sun::star::uno::TypeClass_ENUM) { - rnEnum = * reinterpret_cast< const int * >( rAny.getValue() ); + rnEnum = * static_cast< const int * >( rAny.getValue() ); return true; } diff --git a/include/comphelper/uno3.hxx b/include/comphelper/uno3.hxx index 533a1a7f030b..62f3e7c644f7 100644 --- a/include/comphelper/uno3.hxx +++ b/include/comphelper/uno3.hxx @@ -187,7 +187,7 @@ namespace comphelper ::com::sun::star::uno::Any aCheck = _rxAggregate->queryAggregation( cppu::UnoType<iface>::get()); if (aCheck.hasValue()) - _rxOut = *reinterpret_cast<const ::com::sun::star::uno::Reference<iface>*>(aCheck.getValue()); + _rxOut = *static_cast<const ::com::sun::star::uno::Reference<iface>*>(aCheck.getValue()); } return _rxOut.is(); } @@ -208,7 +208,7 @@ namespace comphelper cppu::UnoType<iface>::get()); if(aCheck.hasValue()) { - _rxOut = *reinterpret_cast<const ::com::sun::star::uno::Reference<iface>*>(aCheck.getValue()); + _rxOut = *static_cast<const ::com::sun::star::uno::Reference<iface>*>(aCheck.getValue()); return _rxOut.is(); } } |