bugs in template "KDE2 Normal"

Ralf Nolden nolden at kde.org
Wed Jul 18 07:28:51 BST 2001


"Pascal A. Niklaus" wrote:
> 
> At 06:58 PM 16/07/2001, you wrote:
> 
> >"Pascal A. Niklaus" wrote:
> > >
> > > There were two more bugs in the project templates of KDevelop 1.4.1:
> > >
> > > - QT Application:  The user application object is never destroyed, which is
> > > a nuisance if there is important cleanup code in the destructor...
> > >         The following fix will do it...
> > >
> > >          QApplication a(argc, argv);
> > >         a.setFont(QFont("helvetica", 12));
> > >
> > >         QSomeApp *qsomeapp=new QSomeApp();
> >
> >Just not using new  here will save the additional delete line :)
> >I will have a look today and fix this.
> 
> Yes, but it is not nice to have a potentially large object on the stack....
> I'd prefer the new. Maybe it would also pay to put QApplication onto the heap?
Well, I'd like to keep the code for the KDE and Qt templates as
synchronous as possible, and putting QApplication on the heap is quite
uncommon :) So in any case I'd like to keep the code as much as it is.

Ralf
--
We're not a company, we just produce better code at less costs.
--------------------------------------------------------------------
Ralf Nolden
nolden at kde.org

The K Desktop Environment	The KDevelop Project
http://www.kde.org		http://www.kdevelop.org



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list