diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 09:09:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-29 09:05:39 +0200 |
commit | 37f9fdc11c4e95d6a34cb515a454503256a82c63 (patch) | |
tree | 35099c65caf4c62451a5b7a7c0bac249473c9733 /cli_ure/source | |
parent | 4c91b89d8ce9c34179f31854dc88bd0a9fa84cba (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 'cli_ure/source')
-rw-r--r-- | cli_ure/source/uno_bridge/cli_base.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli_ure/source/uno_bridge/cli_base.h b/cli_ure/source/uno_bridge/cli_base.h index 13f1dc7bff36..48e2de42d680 100644 --- a/cli_ure/source/uno_bridge/cli_base.h +++ b/cli_ure/source/uno_bridge/cli_base.h @@ -116,9 +116,9 @@ struct BridgeRuntimeError struct rtl_mem { inline static void * operator new ( size_t nSize ) - { return rtl_allocateMemory( nSize ); } + { return std::malloc( nSize ); } inline static void operator delete ( void * mem ) - { if (mem) rtl_freeMemory( mem ); } + { std::free( mem ); } inline static void * operator new ( size_t, void * mem ) { return mem; } inline static void operator delete ( void *, void * ) @@ -129,7 +129,7 @@ struct rtl_mem inline std::unique_ptr< rtl_mem > rtl_mem::allocate( std::size_t bytes ) { - void * p = rtl_allocateMemory( bytes ); + void * p = std::malloc( bytes ); if (0 == p) throw BridgeRuntimeError("out of memory!" ); return std::unique_ptr< rtl_mem >( (rtl_mem *)p ); |