a text on optimizing C++

David Leimbach kde-optimize@mail.kde.org
Fri, 24 Jan 2003 18:10:53 -0600


On Friday 24 January 2003 05:17 pm, Martijn Klingens wrote:
> On Friday 24 January 2003 23:29, Waldo Bastian wrote:
> > It only works as long as you need to write one entry.
>
> Ehm, I used Lubos' code as example. In my case it wasn't about KConfig.
>
> I was merely asking if such a construct to not introduce a symbol is
> frowned upon or acceptable.
>
> Real example:
>
> ( new QVBoxLayout( ... ) )->setAutoAdd( true );

Looks like a memory leak to me.. . you just constructed something and threw 
out the pointer