Remove unnecessary null pointer checks
elfring opened this issue · 2 comments
elfring commented
An extra null pointer check is not needed in functions like the following.
elfring commented
How do you think about to improve the affected source code?
mercere99 commented
I agree completely with the removal of the null checks. At the time I originally wrote this code, I hadn't realized that it was safe to delete null pointers (or rather, that delete always performs this check).
http://stackoverflow.com/questions/4190703/is-it-safe-to-delete-a-null-pointer