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;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits