[patch] to bug 88243

Paul Temple paul.temple at gmx.net
Fri Feb 11 00:00:10 GMT 2005


Koos Vriezen wrote:
> On Fri, Feb 11, 2005 at 12:16:35AM +0100, Paul Temple wrote:
> > > Looks to me you take an adress of a temporary with
> > >   Node* myNode = &(toNode(args[0]));
> > > that should be written as
> > >   Node myNode = toNode(args[0]);
> > > which also looks a lot less scary :-)
> >
> > Yes, there are warnings, but _I_ (unlike the compiler) know
> > that I don't do any harm... :)
>
> And I know that you do :-)
> toNode returns a DOM::Node, that's an object. This object is
> immediately destroyed after the assignment (the = operation).

Hm, I'll read a chapter about that - though it was totally 
different...

Attached a revised patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 88243.patch
Type: text/x-diff
Size: 1688 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050211/693cad93/attachment.patch>


More information about the kfm-devel mailing list