Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary null pointer checks. #1110

Merged

Conversation

elfring
Copy link
Contributor

@elfring elfring commented Apr 7, 2014

Explicit null pointer checks are performed at a few source code places before pointers are passed to the C++ delete operator. This is unnecessary because the delete operator will care for such parameter validation already.

Explicit null pointer checks were performed at a few source code places
before pointers were passed to the C++ delete operator. This was unnecessary
because the delete operator will care for such parameter validation already.
http://www.parashift.com/c++-faq/delete-handles-null.html

Redundant checks were removed.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
hkaiser added a commit that referenced this pull request Apr 7, 2014
…_checks

Remove unnecessary null pointer checks.
@hkaiser hkaiser merged commit cd7d32f into STEllAR-GROUP:master Apr 7, 2014
@hkaiser
Copy link
Member

hkaiser commented Apr 7, 2014

Thanks!

@hkaiser hkaiser added this to the 0.9.9 milestone Apr 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants