From 37f9fdc11c4e95d6a34cb515a454503256a82c63 Mon Sep 17 00:00:00 2001 From: Noel Grandin <noel.grandin@collabora.co.uk> Date: Tue, 28 Aug 2018 09:09:33 +0200 Subject: replace rtl_allocateMemory with std::malloc where used directly, since rtl_allocateMemory now just calls into std::malloc Change-Id: I59f85bdb7efdf6baa30e8fcd2370c0f8e9c999ad Reviewed-on: https://gerrit.libreoffice.org/59685 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> --- store/source/lockbyte.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store/source/lockbyte.cxx') diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx index 09240505a7fb..444772e8ff8d 100644 --- a/store/source/lockbyte.cxx +++ b/store/source/lockbyte.cxx @@ -690,7 +690,7 @@ MemoryLockBytes::MemoryLockBytes() MemoryLockBytes::~MemoryLockBytes() { - rtl_freeMemory (m_pData); + std::free (m_pData); } storeError MemoryLockBytes::initialize_Impl (rtl::Reference< PageData::Allocator > & rxAllocator, sal_uInt16 nPageSize) @@ -776,7 +776,7 @@ storeError MemoryLockBytes::setSize_Impl (sal_uInt32 nSize) { if (nSize != m_nSize) { - sal_uInt8 * pData = static_cast<sal_uInt8*>(rtl_reallocateMemory (m_pData, nSize)); + sal_uInt8 * pData = static_cast<sal_uInt8*>(std::realloc (m_pData, nSize)); if (pData != nullptr) { if (nSize > m_nSize) -- cgit