tag:blogger.com,1999:blog-17552332.post3268157761361733219..comments2010-10-31T19:39:07.614+01:00Comments on dhaumann: Memory Leak Continueddhaumannhttp://www.blogger.com/profile/06242913572752671774noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-17552332.post-51784608551673444692007-11-22T20:26:00.000+01:002007-11-22T20:26:00.000+01:00Or even subclass it, then you don't have to go ui....Or even subclass it, then you don't have to go ui.widget->, but can just go widget-><BR/><BR/>class Foo : public QWidget, public Qi::Foo {<BR/><BR/>}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17552332.post-70892082311309145252007-11-22T12:56:00.000+01:002007-11-22T12:56:00.000+01:00I should also mention that I brought this issue up...I should also mention that I brought this issue up because it's done wrong lots of times: In KDevelop, in kdepim and lots of other places.<BR/><BR/>Maybe a krazy check could find such errors... somehow...dhaumannhttps://www.blogger.com/profile/06242913572752671774noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-75305494656625142782007-11-22T12:54:00.000+01:002007-11-22T12:54:00.000+01:00True. All arguments only hold if you want to use f...True. All arguments only hold if you want to use forward declarations in the header file to speed up compilation / keep the header files as small as possible.dhaumannhttps://www.blogger.com/profile/06242913572752671774noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-22527288682398159752007-11-22T12:43:00.000+01:002007-11-22T12:43:00.000+01:00private: Ui::Foo widget;which is faster (mallocs a...private:<BR/> Ui::Foo widget;<BR/><BR/>which is faster (mallocs are slow!!) and avoids this whole problem.Thomashttps://www.blogger.com/profile/16797278003622336012noreply@blogger.com