Kaydet (Commit) 898832fa authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up C-style casts from pointers to void

Change-Id: Ibd23c1d96b093ae2670e7752691dad29c081639f
üst 116b969f
......@@ -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<Entry**>(rtl_allocateMemory(new_bytes));
if (new_table != 0)
{
......
......@@ -152,7 +152,7 @@ storeError OStoreLockBytes::readAt (
// Read data.
OStoreDataPageObject aData;
sal_uInt8 *pData = (sal_uInt8*)pBuffer;
sal_uInt8 *pData = static_cast<sal_uInt8*>(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<const sal_uInt8*>(pBuffer);
storeError eErrCode = store_E_None;
while (nBytes > 0)
......
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