BASIC : Remove useless allocation operator overload

Change-Id: I134cdbfe388347264a810bbfbff8b4f9f373e663
Reviewed-on: https://gerrit.libreoffice.org/20873
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
This commit is contained in:
Arnaud Versini 2015-12-22 12:20:22 +01:00 committed by Arnaud Versini
parent 5ff0c0c283
commit f146ddadf5
2 changed files with 0 additions and 18 deletions

View File

@ -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 )

View File

@ -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;