On Thursday 20 June 2013 12:34:08 Thomas Lübking wrote:
> On Donnerstag, 20. Juni 2013 12:18:19 CEST, Pali Rohár wrote:
> > On Thursday 20 June 2013 10:47:27 Jan Kundrát wrote:
> > 
> > I look at qt plugins howto and there is also used inlined
> > virtual destructor:
> > https://qt-project.org/doc/qt-4.8/plugins-howto.html
> 
> Because there mentioned "FilterInterface" class does not
> inherit QObject. Adding a virtual deconstructor is more or
> less mandatory, but QObject already does that. And the
> deconstructor has a header "implementation" but it is NOT
> inlined.
> 
> 1. QObject has a virtual deconstructor and that flag cannot be
> withdrawn. All derived classed have virtual deconstructos.
> 2. adding a deconstructor that does nothing is pointless - if
> the plugin needs a deconstructor implementation, it can just
> add one.
> 

I totally forgot this. Then really empty destructors are not 
needed.

And is needed default constructor for propagating parent?
AddressbookInterface(QObject * parent) : QObject(parent) {}

-- 
Pali Rohár
pali.ro...@gmail.com

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to