[Digikam-devel] Re: Logic error
Johannes Wienke
languitar at semipol.de
Sun Nov 21 21:36:47 GMT 2010
Am 21.11.2010 22:27 schrieb Andi Clemens:
> I added a "virtual" keyword to every destructor now (besides the clases from
> 3rdparty), to make things easier.
> It shouldn't hurt to have virtual destructors, even when no virtual method is
> in the base class.
>
> But could it have disadvantages? Slowdowns of some kind?
>
> The advantage would be to get rid of possible memory leaks due to wrong
> destructor callings.
>
> The patch is in a local branch, I will do further tests, but I'll wait for the
> digiKam 1.6.0 release anyways, so please comment here if you think the patch
> would be wrong and we should only add "virtual" to those classes with virtual
> methods.
It would sometimes cost an extra vtable. Probably neglectable.
What are you using for code analysis in eclipse?
Regards,
Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20101121/6f6acc65/attachment.sig>
More information about the Digikam-devel
mailing list