initialize all members

This commit is contained in:
David Philippi 2007-09-01 16:38:28 +00:00
parent 47d650ff82
commit 9a3fd520a0
3 changed files with 10 additions and 7 deletions

View file

@ -24,6 +24,8 @@ class config;
//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;

View file

@ -87,15 +87,16 @@ public:
};
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_)
{
}

View file

@ -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) {}