Mercurial > hg > forks > yadex
changeset 54:dd94096a7fcd
Cleanups, use NULL instead of 0.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Sep 2011 05:45:04 +0300 |
parents | dad7faa96eea |
children | 522a71f40632 |
files | src/wadfile.cc |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/wadfile.cc Mon Sep 26 05:44:46 2011 +0300 +++ b/src/wadfile.cc Mon Sep 26 05:45:04 2011 +0300 @@ -36,20 +36,20 @@ */ Wad_file::~Wad_file() { - if (directory != 0) + if (directory != NULL) { FreeMemory(directory); - directory = 0; // Catch bugs + directory = NULL; // Catch bugs } - if (fp != 0) + if (fp != NULL) { fclose(fp); - fp = 0; // Catch bugs + fp = NULL; // Catch bugs } - if (filename != 0) + if (filename != NULL) { FreeMemory(filename); - filename = 0; // Catch bugs + filename = NULL; // Catch bugs } }