diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/source/storcach.cxx | 2 | ||||
-rw-r--r-- | 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<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) |