From 0e8cb2028a0c9aaf760d4cbb8186ea6039667b4e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Mar 2015 13:15:48 +0200 Subject: Reduce to static_cast any reinterpret_cast from void pointers Change-Id: Ic03728b2824eb59b9b6351a88ec355bfb93154cb --- sal/osl/unx/file.cxx | 2 +- sal/rtl/math.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sal') diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 5b3f830ff76e..73612a32d273 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -1140,7 +1140,7 @@ SAL_CALL osl_mapFile ( * Pagein, touching first byte of every memory page. * Note: volatile disables optimizing the loop away. */ - sal_uInt8 * pData (reinterpret_cast(*ppAddr)); + sal_uInt8 * pData (static_cast(*ppAddr)); size_t nSize (nLength); volatile sal_uInt8 c = 0; diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 36a66a8711cf..db9b06a2ac36 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -419,7 +419,7 @@ inline void doubleToString(StringT ** pResult, : nDigits + nDecPlaces ) + 10 + (pGroups ? abs(nDigits) * 2 : 0); if ( nBuf > nBufMax ) { - pBuf = reinterpret_cast< typename T::Char * >( + pBuf = static_cast< typename T::Char * >( rtl_allocateMemory(nBuf * sizeof (typename T::Char))); OSL_ENSURE(pBuf != 0, "Out of memory"); } -- cgit