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:
committed by
Arnaud Versini
parent
5ff0c0c283
commit
f146ddadf5
@@ -1014,21 +1014,6 @@ StarBASIC::~StarBASIC()
|
|||||||
clearUnoMethodsForBasic( this );
|
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 )
|
void StarBASIC::implClearDependingVarsOnDelete( StarBASIC* pDeletedBasic )
|
||||||
{
|
{
|
||||||
if( this != pDeletedBasic )
|
if( this != pDeletedBasic )
|
||||||
|
@@ -93,9 +93,6 @@ public:
|
|||||||
// not delivered to Parent.
|
// not delivered to Parent.
|
||||||
virtual void SetModified( bool ) override;
|
virtual void SetModified( bool ) override;
|
||||||
|
|
||||||
void* operator new( size_t );
|
|
||||||
void operator delete( void* );
|
|
||||||
|
|
||||||
virtual void Insert( SbxVariable* ) override;
|
virtual void Insert( SbxVariable* ) override;
|
||||||
using SbxObject::Remove;
|
using SbxObject::Remove;
|
||||||
virtual void Remove( SbxVariable* ) override;
|
virtual void Remove( SbxVariable* ) override;
|
||||||
|
Reference in New Issue
Block a user