[Digikam-devel] Re: Logic error

Andi Clemens Andi.Clemens at gmx.net
Mon Nov 22 18:26:43 GMT 2010


Ok, hope this is true for every compiler out there... :-)
I will take a look at the code analysis later this evening.

Andi

-------- Original-Nachricht --------
> Datum: Mon, 22 Nov 2010 18:48:19 +0100
> Von: Marcel Wiesweg <marcel.wiesweg at gmx.de>
> An: "digiKam developers room - digiKam - Manage your photographs as a\\ 	professional with the power of open source" <digikam-devel at kde.org>
> Betreff: [Digikam-devel] Re: Logic error

> 
> > But don't you have to declare it "virtual" again in all derived classes,
> > although the base class already defined it like this?
> > 
> 
> Yes, a method is always virtual if declared in the base class, in the
> derived 
> class the keyword is cosmetic. Same source as above:
> 
> "Note: in a derived class, if your base class has a virtual destructor,
> your 
> own destructor is automatically virtual. You might need an explicit
> destructor 
> for other reasons, but there's no need to redeclare a destructor simply to
> make sure it is virtual. No matter whether you declare it with the virtual
> keyword, declare it without the virtual keyword, or don't declare it at
> all, 
> it's still virtual."
> 
> Marcel
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel

-- 
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl



More information about the Digikam-devel mailing list