mail[Wesnoth-commits] r27387 - /trunk/src/terrain_filter.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on June 22, 2008 - 11:48:
Author: mordante
Date: Sun Jun 22 11:48:49 2008
New Revision: 27387

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27387&view=rev
Log:
Initialize all members and replaced NULL with 0.

Modified:
    trunk/src/terrain_filter.hpp

Modified: trunk/src/terrain_filter.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/terrain_filter.hpp?rev=27387&r1=27386&r2=27387&view=diff
==============================================================================
--- trunk/src/terrain_filter.hpp (original)
+++ trunk/src/terrain_filter.hpp Sun Jun 22 11:48:49 2008
@@ -60,7 +60,13 @@
        const unit_map& units_;
 
        struct terrain_filter_cache {
-               terrain_filter_cache() : parsed_terrain(NULL), 
adjacent_matches(NULL) {}
+               terrain_filter_cache() : 
+                       parsed_terrain(0), 
+                       adjacent_matches(0),
+                       adjacent_match_cache()
+               {
+               }
+
                ~terrain_filter_cache() { 
                        delete parsed_terrain;
                        delete adjacent_matches;




Related Messages


Powered by MHonArc, Updated Sun Jun 22 12:41:30 2008