summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-29 09:14:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-30 08:30:07 +0200
commite040d8defb774255e083825863641493f4c7d9ff (patch)
tree0204123da57116934b569d1523e71b675f9e9860 /include
parent9e1df712d6e247f4dc9391c0a006b3da2df40403 (diff)
don't declare allocation operators for internal code
since they just call into malloc/free now, we can ignore them. Should have some nice side-effects like letting the compiler allocate temporaries on the stack. Change-Id: I2500abe19acf9b5bcc676604393c498d4e0dce58 Reviewed-on: https://gerrit.libreoffice.org/59658 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/interfacecontainer2.hxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/comphelper/interfacecontainer2.hxx b/include/comphelper/interfacecontainer2.hxx
index f0f79c3033df..60bf7e74a1db 100644
--- a/include/comphelper/interfacecontainer2.hxx
+++ b/include/comphelper/interfacecontainer2.hxx
@@ -125,16 +125,6 @@ private:
class COMPHELPER_DLLPUBLIC OInterfaceContainerHelper2
{
public:
- // these are here to force memory de/allocation to sal lib.
- static void * operator new( size_t nSize )
- { return ::rtl_allocateMemory( nSize ); }
- static void operator delete( void * pMem )
- { ::rtl_freeMemory( pMem ); }
- static void * operator new( size_t, void * pMem )
- { return pMem; }
- static void operator delete( void *, void * )
- {}
-
/**
Create an interface container.