[Libreoffice] Compilation error in svx undefined reference to `XPropertyList::operator delete(void*)'

Stephan Bergmann sbergman at redhat.com
Mon Sep 26 11:25:10 PDT 2011


On 09/26/2011 10:58 AM, Michael Meeks wrote:
> On Sun, 2011-09-25 at 01:40 -0700, julien2412 wrote:
>> /home/maryline/compile-libreoffice/libo/workdir/unxlngi6/CxxObject/svx/source/tbxctrls/fillctrl.o:
>> In function `~XBitmapList':
>> /home/maryline/compile-libreoffice/libo/svx/inc/svx/xtable.hxx:469:
>> undefined reference to `XPropertyList::operator delete(void*)'
>> /home/maryline/compile-libreoffice/libo/svx/inc/svx/xtable.hxx:469:
>> undefined reference to `XPropertyList::operator delete(void*)'
>
> 	Riight - that is odd / annoying. The idea here is (by hiding new /
> delete) that we force people to use the static factory function and thus
> not shoot the ref-counting in the foot :-) as a quick hack around just
> removing those operators would work, and sorry to break it for you ...

If the only way to create XBitmapList instances is via an (XBitmapList 
member) factory function, you do not need (and should remove again) 
private new/delete -- private ctor/dtor suffice.

-Stephan


More information about the LibreOffice mailing list