[Digikam-devel] Re: delete does not reset the pointer in GCC (4.6.0)

Andi Clemens andi.clemens at gmx.net
Wed Jun 15 09:42:31 BST 2011


Yes we changed your scenario, too.
But we also changed the code I described before. Maybe this is longer than  
a few months ago, maybe 2 years.
I know that I always added
xyz = 0;
to my code before, but then it was removed again because it is not  
neccessary with modern compilers (I don't know who said that).




On Wed, 15 Jun 2011 10:30:56 +0200, Marcel Wiesweg <marcel.wiesweg at gmx.de>  
wrote:

>
>> some time ago we removed all lines that looked like that
>>
>> delete xyz;
>> xyz = 0;
>
> Are you really sure about this? I hope not. Because I would agree that  
> crashes immediately...
>
> Didnt we change
> if (xyz) delete xyz;
> to
> delete xyz;
> ?
>
>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/



More information about the Digikam-devel mailing list