diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:05:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:24 +0100 |
commit | d57d81e529a44d8042401e36057a69ebe97e870a (patch) | |
tree | 3c434c6998bb9c8754c9b662c4bdb485c0aff29b /sal/qa/rtl | |
parent | cf54f2a10f128cf5d79397911b5be710e7081963 (diff) |
Clean up C-style casts from pointers to void
Change-Id: I5e370445affbcd32b05588111f74590bf24f39d6
Diffstat (limited to 'sal/qa/rtl')
-rw-r--r-- | sal/qa/rtl/alloc/rtl_alloc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/rtl/alloc/rtl_alloc.cxx b/sal/qa/rtl/alloc/rtl_alloc.cxx index b0f58a63c613..4aee1ca22978 100644 --- a/sal/qa/rtl/alloc/rtl_alloc.cxx +++ b/sal/qa/rtl/alloc/rtl_alloc.cxx @@ -60,7 +60,7 @@ public: // initialise your test code values here. void setUp() SAL_OVERRIDE { - m_pMemory = (char*) rtl_allocateMemory( m_nSizeOfMemory ); + m_pMemory = static_cast<char*>(rtl_allocateMemory( m_nSizeOfMemory )); } void tearDown() SAL_OVERRIDE @@ -79,7 +79,7 @@ public: void rtl_reallocateMemory_001() { sal_uInt32 nSize = 2 * 1024; - m_pMemory = (char*)rtl_reallocateMemory(m_pMemory, nSize); + m_pMemory = static_cast<char*>(rtl_reallocateMemory(m_pMemory, nSize)); CPPUNIT_ASSERT_MESSAGE( "Can reallocate memory.", m_pMemory != NULL); memset(m_pMemory, 2, nSize); @@ -108,7 +108,7 @@ public: // initialise your test code values here. void setUp() SAL_OVERRIDE { - m_pZeroMemory = (char*) rtl_allocateZeroMemory( m_nSizeOfZeroMemory ); + m_pZeroMemory = static_cast<char*>(rtl_allocateZeroMemory( m_nSizeOfZeroMemory )); } void tearDown() SAL_OVERRIDE |