[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: SmartPointerList
From: "Maksim Orlovich" <mo85 () cornell ! edu>
Date: 2010-01-14 0:51:19
Message-ID: 61102.67.246.70.185.1263430279.squirrel () webmail ! cornell ! edu
[Download RAW message or body]
> the very first time i used QWeakPointer i gave a small groan about this.
> by
> the end of the day (was converting all the Plasma related code over to
> this
> and some other Qt 4.6 features) I was singing a very different tune. it
> really
> does help, doesn't add to the verbosity of the code in practice (store and
> check the value of data() in a local var) and makes it very easy to spot
> problem code.
That's also a potential flaw: if you store it in local, and it goes away
during that period, you wouldn't get a clean null-pointer crash.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic