diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:15:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:15:48 +0200 |
commit | 0e8cb2028a0c9aaf760d4cbb8186ea6039667b4e (patch) | |
tree | 4fc24f925f98b2803a8215cc57612fb212731715 /sal/rtl | |
parent | c9c991a9af4cae97011d1834c986e6fa27eaff89 (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: Ic03728b2824eb59b9b6351a88ec355bfb93154cb
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/math.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |