[Libreoffice] [PUSHED, partial] Remove NULL checks from delete
Caolán McNamara
caolanm at redhat.com
Thu Nov 10 02:14:46 PST 2011
On Wed, 2011-11-09 at 18:05 -0500, Andrew Douglas Pitonyak wrote:
> I assume that this would check for an array as well.
>
> I would feel safer if pointers were set to NULL (or nullptr if we
> support C++11) since it is not safe to delete a pointer twice.
?, convert all delete to e.g. DELETEZ, i.e. delete foo, foo = NULL ?
Wouldn't be a fan of that, c++ is the language that it is, need to live
with that and not try and make it something that it isn't.
C.
More information about the LibreOffice
mailing list