summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:07:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:26 +0100
commit898832faad4be91729deaf88e35f725da62c72ca (patch)
tree1f9f8e5fb5f4054b80b13aab1520ed74479f7771 /store
parent116b969fc9916a0414d79e5276623b8b8dcc5f3d (diff)
Clean up C-style casts from pointers to void
Change-Id: Ibd23c1d96b093ae2670e7752691dad29c081639f
Diffstat (limited to 'store')
-rw-r--r--store/source/storcach.cxx2
-rw-r--r--store/source/storlckb.cxx4
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<Entry**>(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<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)