[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-optimize
Subject: Re: Developers and getting them to improve their code.
From: Harri Porten <porten () trolltech ! com>
Date: 2003-01-09 15:06:35
[Download RAW message or body]
On Thu, 9 Jan 2003, Benjamin Meyer wrote:
> > I can make the change to ommit the empty destructor (if we come to some
> > agreement re the benefit). But as the Q_OBJECT macro also has the purpose
> > of supplying a className() definition it's not easy to remove without
> > breaking people's code. How about extra command line arguments ?
>
> It would only remove ther Q_OBJECT marcro if the generated file was a
> constructor and had no signals and no slots. Why would you need the
> className() function for those classes?
To check inheritence. There's for sure code out there that does
if (o->inherits("MyDialogBase")) {
MyDialogBase *b = (MyDialogBase*)o;
// ...
}
Harri.
_______________________________________________
Kde-optimize mailing list
Kde-optimize@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-optimize
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic