Kaydet (Commit) 0e8cb202 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: Ic03728b2824eb59b9b6351a88ec355bfb93154cb
üst c9c991a9
...@@ -1140,7 +1140,7 @@ SAL_CALL osl_mapFile ( ...@@ -1140,7 +1140,7 @@ SAL_CALL osl_mapFile (
* Pagein, touching first byte of every memory page. * Pagein, touching first byte of every memory page.
* Note: volatile disables optimizing the loop away. * Note: volatile disables optimizing the loop away.
*/ */
sal_uInt8 * pData (reinterpret_cast<sal_uInt8*>(*ppAddr)); sal_uInt8 * pData (static_cast<sal_uInt8*>(*ppAddr));
size_t nSize (nLength); size_t nSize (nLength);
volatile sal_uInt8 c = 0; volatile sal_uInt8 c = 0;
......
...@@ -419,7 +419,7 @@ inline void doubleToString(StringT ** pResult, ...@@ -419,7 +419,7 @@ inline void doubleToString(StringT ** pResult,
: nDigits + nDecPlaces ) + 10 + (pGroups ? abs(nDigits) * 2 : 0); : nDigits + nDecPlaces ) + 10 + (pGroups ? abs(nDigits) * 2 : 0);
if ( nBuf > nBufMax ) if ( nBuf > nBufMax )
{ {
pBuf = reinterpret_cast< typename T::Char * >( pBuf = static_cast< typename T::Char * >(
rtl_allocateMemory(nBuf * sizeof (typename T::Char))); rtl_allocateMemory(nBuf * sizeof (typename T::Char)));
OSL_ENSURE(pBuf != 0, "Out of memory"); OSL_ENSURE(pBuf != 0, "Out of memory");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment