basic/source/classes/sb.cxx | 15 --------------- include/basic/sbstar.hxx | 3 --- 2 files changed, 18 deletions(-)
New commits: commit f146ddadf5cb12790e85dc09b42303a89fde44ab Author: Arnaud Versini <arnaud.vers...@gmail.com> Date: Tue Dec 22 12:20:22 2015 +0100 BASIC : Remove useless allocation operator overload Change-Id: I134cdbfe388347264a810bbfbff8b4f9f373e663 Reviewed-on: https://gerrit.libreoffice.org/20873 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Arnaud Versini <arnaud.vers...@libreoffice.org> diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 745f4b3..60d2b02 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1014,21 +1014,6 @@ StarBASIC::~StarBASIC() clearUnoMethodsForBasic( this ); } -// Override new() operator, so that everyone can create a new instance -void* StarBASIC::operator new( size_t n ) -{ - if( n < sizeof( StarBASIC ) ) - { - n = sizeof( StarBASIC ); - } - return ::operator new( n ); -} - -void StarBASIC::operator delete( void* p ) -{ - ::operator delete( p ); -} - void StarBASIC::implClearDependingVarsOnDelete( StarBASIC* pDeletedBasic ) { if( this != pDeletedBasic ) diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx index 2232efb..8c02be3 100644 --- a/include/basic/sbstar.hxx +++ b/include/basic/sbstar.hxx @@ -93,9 +93,6 @@ public: // not delivered to Parent. virtual void SetModified( bool ) override; - void* operator new( size_t ); - void operator delete( void* ); - virtual void Insert( SbxVariable* ) override; using SbxObject::Remove; virtual void Remove( SbxVariable* ) override; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits