From 9a831a6c19a30869782cfeb17f1c649a4ce4d9d9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Apr 2018 16:54:25 +0200 Subject: remove no longer necessary operator new/delete overrides and use "using" statements for the places where the overrides were resolving ambiguities Change-Id: Icb1d1a41f19e00f28a19947aa2c40bd5778fff94 Reviewed-on: https://gerrit.libreoffice.org/52993 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/inc/file/fanalyzer.hxx | 8 -------- connectivity/source/inc/file/fcode.hxx | 10 ---------- connectivity/source/inc/file/fcomp.hxx | 8 -------- 3 files changed, 26 deletions(-) (limited to 'connectivity/source/inc/file') diff --git a/connectivity/source/inc/file/fanalyzer.hxx b/connectivity/source/inc/file/fanalyzer.hxx index ea33b682a8e7..bf0bf810299d 100644 --- a/connectivity/source/inc/file/fanalyzer.hxx +++ b/connectivity/source/inc/file/fanalyzer.hxx @@ -45,14 +45,6 @@ namespace connectivity public: OSQLAnalyzer(OConnection* _pConnection); ~OSQLAnalyzer(); - static void * operator new( size_t nSize ) - { return ::rtl_allocateMemory( nSize ); } - static void * operator new( size_t /*nSize*/,void* _pHint ) - { return _pHint; } - static void operator delete( void * pMem ) - { ::rtl_freeMemory( pMem ); } - static void operator delete( void * /*pMem*/,void* /*_pHint*/ ) - { } OConnection* getConnection() const { return m_pConnection; } void bindEvaluationRow(OValueRefRow const & _pRow); // Bind an evaluation row to the restriction diff --git a/connectivity/source/inc/file/fcode.hxx b/connectivity/source/inc/file/fcode.hxx index d83ede26aed0..da0670f4e1da 100644 --- a/connectivity/source/inc/file/fcode.hxx +++ b/connectivity/source/inc/file/fcode.hxx @@ -52,16 +52,6 @@ namespace connectivity //and same issue for the assignment operators OCode& operator=(const OCode&) = default; OCode& operator=(OCode&&) = default; - - static void * operator new( size_t nSize ) - { return ::rtl_allocateMemory( nSize ); } - static void * operator new( size_t /*nSize*/,void* _pHint ) - { return _pHint; } - static void operator delete( void * pMem ) - { ::rtl_freeMemory( pMem ); } - static void operator delete( void * /*pMem*/,void* /*_pHint*/ ) - { } - }; diff --git a/connectivity/source/inc/file/fcomp.hxx b/connectivity/source/inc/file/fcomp.hxx index 1485060873a1..bc1b452e1915 100644 --- a/connectivity/source/inc/file/fcomp.hxx +++ b/connectivity/source/inc/file/fcomp.hxx @@ -48,14 +48,6 @@ namespace connectivity virtual ~OPredicateCompiler() override; - static void * operator new( size_t nSize ) - { return ::rtl_allocateMemory( nSize ); } - static void * operator new( size_t /*nSize*/,void* _pHint ) - { return _pHint; } - static void operator delete( void * pMem ) - { ::rtl_freeMemory( pMem ); } - static void operator delete( void * /*pMem*/,void* /*_pHint*/ ) - { } void dispose(); void start(connectivity::OSQLParseNode const * pSQLParseNode); -- cgit