summaryrefslogtreecommitdiff
path: root/cli_ure/source
diff options
context:
space:
mode:
Diffstat (limited to 'cli_ure/source')
-rw-r--r--cli_ure/source/uno_bridge/cli_base.h6
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 );