summaryrefslogtreecommitdiff
path: root/store/source/storbios.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-28 09:09:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-29 09:05:39 +0200
commit37f9fdc11c4e95d6a34cb515a454503256a82c63 (patch)
tree35099c65caf4c62451a5b7a7c0bac249473c9733 /store/source/storbios.cxx
parent4c91b89d8ce9c34179f31854dc88bd0a9fa84cba (diff)
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>
Diffstat (limited to 'store/source/storbios.cxx')
-rw-r--r--store/source/storbios.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx
index fa76b5cc345d..2ba25fd53e8c 100644
--- a/store/source/storbios.cxx
+++ b/store/source/storbios.cxx
@@ -170,11 +170,11 @@ struct SuperBlockPage
*/
static void * operator new (size_t n)
{
- return rtl_allocateMemory (sal::static_int_cast<sal_Size>(n));
+ return std::malloc(sal::static_int_cast<sal_Size>(n));
}
static void operator delete (void * p)
{
- rtl_freeMemory (p);
+ std::free (p);
}
static void * operator new (SAL_UNUSED_PARAMETER size_t, sal_uInt16 nPageSize)
@@ -183,7 +183,7 @@ struct SuperBlockPage
}
static void operator delete (void * p, SAL_UNUSED_PARAMETER sal_uInt16)
{
- rtl_freeMemory (p);
+ std::free (p);
}
/** Construction.