Author: mordante
Date: Sun Apr  1 10:23:02 2012
New Revision: 53741

URL: http://svn.gna.org/viewcvs/wesnoth?rev=53741&view=rev
Log:
Use NULL instead of 0.

Modified:
    trunk/src/scoped_resource.hpp

Modified: trunk/src/scoped_resource.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/scoped_resource.hpp?rev=53741&r1=53740&r2=53741&view=diff
==============================================================================
--- trunk/src/scoped_resource.hpp (original)
+++ trunk/src/scoped_resource.hpp Sun Apr  1 10:23:02 2012
@@ -118,19 +118,19 @@
 
 /**
 * A helper policy for scoped_ptr.
-* It will call the delete operator on a pointer, and assign the pointer to 0
+* It will call the delete operator on a pointer, and assign the pointer to NULL
 */
 struct delete_item {
        template<typename T>
-       void operator()(T*& p) const { delete p; p = 0; }
+       void operator()(T*& p) const { delete p; p = NULL; }
 };
 /**
 * A helper policy for scoped_array.
-* It will call the delete[] operator on a pointer, and assign the pointer to 0
+* It will call the delete[] operator on a pointer, and assign the pointer to 
NULL
 */
 struct delete_array {
        template<typename T>
-       void operator()(T*& p) const { delete [] p; p = 0; }
+       void operator()(T*& p) const { delete [] p; p = NULL; }
 };
 
 /**


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to