mail[Wesnoth-commits] r20039 - in /trunk/src/serialization: binary_wml.hpp preprocessor.cpp preprocessor.hpp


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

Header


Content

Posted by david on September 01, 2007 - 18:38:
Author: torangan
Date: Sat Sep  1 18:38:28 2007
New Revision: 20039

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20039&view=rev
Log:
initialize all members

Modified:
    trunk/src/serialization/binary_wml.hpp
    trunk/src/serialization/preprocessor.cpp
    trunk/src/serialization/preprocessor.hpp

Modified: trunk/src/serialization/binary_wml.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/binary_wml.hpp?rev=20039&r1=20038&r2=20039&view=diff
==============================================================================
--- trunk/src/serialization/binary_wml.hpp (original)
+++ trunk/src/serialization/binary_wml.hpp Sat Sep  1 18:38:28 2007
@@ -24,6 +24,8 @@
 //this object holds the schema by which config objects can be compressed and 
decompressed.
 struct compression_schema
 {
+       compression_schema() : char_to_word(), word_to_char() { }
+
        typedef std::map< unsigned int, std::string > char_word_map;
        char_word_map char_to_word;
 

Modified: trunk/src/serialization/preprocessor.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/preprocessor.cpp?rev=20039&r1=20038&r2=20039&view=diff
==============================================================================
--- trunk/src/serialization/preprocessor.cpp (original)
+++ trunk/src/serialization/preprocessor.cpp Sat Sep  1 18:38:28 2007
@@ -87,15 +87,16 @@
 };
 
 preprocessor_streambuf::preprocessor_streambuf(preproc_map *def)
-       : current_(NULL), defines_(def), textdomain_(PACKAGE),
-         depth_(0), buffer_size_(0), quoted_(false)
+       : streambuf(), out_buffer_(""), buffer_(), current_(NULL), 
defines_(def),
+          textdomain_(PACKAGE), location_(""), linenum_(0), depth_(0),
+          buffer_size_(0), quoted_(false)
 {
 }
 
 preprocessor_streambuf::preprocessor_streambuf(preprocessor_streambuf const 
&t)
-       : streambuf(), current_(NULL), defines_(t.defines_),
-         textdomain_(PACKAGE), depth_(t.depth_),buffer_size_(0),
-         quoted_(t.quoted_)
+       : streambuf(), out_buffer_(""), buffer_(), current_(NULL), 
defines_(t.defines_),
+         textdomain_(PACKAGE), location_(""), linenum_(0), depth_(t.depth_),
+          buffer_size_(0), quoted_(t.quoted_)
 {
 }
 

Modified: trunk/src/serialization/preprocessor.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/preprocessor.hpp?rev=20039&r1=20038&r2=20039&view=diff
==============================================================================
--- trunk/src/serialization/preprocessor.hpp (original)
+++ trunk/src/serialization/preprocessor.hpp Sat Sep  1 18:38:28 2007
@@ -22,8 +22,8 @@
 
 struct preproc_define
 {
-       preproc_define() {}
-       explicit preproc_define(std::string const &val) : value(val) {}
+       preproc_define() : value(""), arguments(), textdomain(""), 
linenum(0), location("") {}
+       explicit preproc_define(std::string const &val) : value(val), 
arguments(), textdomain(""), linenum(0), location("") {}
        preproc_define(std::string const &val, std::vector< std::string > 
const &args,
                       std::string const &domain, int line, std::string const 
&loc)
                : value(val), arguments(args), textdomain(domain), 
linenum(line), location(loc) {}




Related Messages


Powered by MHonArc, Updated Sat Sep 01 19:20:14 2007