From 898832faad4be91729deaf88e35f725da62c72ca Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 28 Mar 2015 19:07:15 +0100 Subject: Clean up C-style casts from pointers to void Change-Id: Ibd23c1d96b093ae2670e7752691dad29c081639f --- store/source/storcach.cxx | 2 +- store/source/storlckb.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx index 0bfa2200fcf1..3f9bb9d7fafa 100644 --- a/store/source/storcach.cxx +++ b/store/source/storcach.cxx @@ -329,7 +329,7 @@ PageCache_Impl::~PageCache_Impl() void PageCache_Impl::rescale_Impl (sal_Size new_size) { sal_Size new_bytes = new_size * sizeof(Entry*); - Entry ** new_table = (Entry**)(rtl_allocateMemory(new_bytes)); + Entry ** new_table = static_cast(rtl_allocateMemory(new_bytes)); if (new_table != 0) { diff --git a/store/source/storlckb.cxx b/store/source/storlckb.cxx index 986e049619c9..0db186b94df2 100644 --- a/store/source/storlckb.cxx +++ b/store/source/storlckb.cxx @@ -152,7 +152,7 @@ storeError OStoreLockBytes::readAt ( // Read data. OStoreDataPageObject aData; - sal_uInt8 *pData = (sal_uInt8*)pBuffer; + sal_uInt8 *pData = static_cast(pBuffer); while ((0 < nBytes) && (nOffset < nDataLen)) { // Determine 'Offset' scope. @@ -247,7 +247,7 @@ storeError OStoreLockBytes::writeAt ( // Write data. OStoreDirectoryPageObject aPage (m_xNode.get()); - const sal_uInt8 *pData = (const sal_uInt8*)pBuffer; + const sal_uInt8 *pData = static_cast(pBuffer); storeError eErrCode = store_E_None; while (nBytes > 0) -- cgit v1.2.3