ensure members are initialized (refs #1114)

This commit is contained in:
Dane Springmeyer 2012-03-05 13:32:02 -08:00
parent 90fb50b158
commit e9c043a42a
5 changed files with 13 additions and 7 deletions

View file

@ -31,7 +31,8 @@ namespace mapnik {
class config_error : public std::exception
{
public:
config_error() {}
config_error():
what_() {}
config_error( std::string const& what ) :
what_( what )

View file

@ -37,7 +37,8 @@ namespace mapnik {
class illegal_enum_value : public std::exception
{
public:
illegal_enum_value() {}
illegal_enum_value():
what_() {}
illegal_enum_value( std::string const& what ) :
what_( what )
@ -138,7 +139,8 @@ template <class ENUM, int THE_MAX>
class MAPNIK_DECL enumeration {
public:
typedef ENUM native_type;
enumeration() {};
enumeration():
value_() {};
enumeration( ENUM v ) : value_(v) {}
enumeration( const enumeration & other ) : value_(other.value_) {}

View file

@ -100,7 +100,9 @@ public:
feature_impl(context_ptr const& ctx, int id)
: id_(id),
ctx_(ctx),
data_(ctx_->mapping_.size())
data_(ctx_->mapping_.size()),
geom_cont_(),
raster_()
{}
inline int id() const { return id_;}
@ -280,9 +282,9 @@ public:
private:
int id_;
context_ptr ctx_;
cont_type data_;
boost::ptr_vector<geometry_type> geom_cont_;
raster_ptr raster_;
cont_type data_;
};

View file

@ -152,7 +152,8 @@ class MAPNIK_DECL font_face_set : private boost::noncopyable
{
public:
font_face_set(void)
: faces_() {}
: faces_(),
dimension_cache_() {}
void add(face_ptr face)
{

View file

@ -93,7 +93,7 @@ operator << ( std::basic_ostream<charT, traits> & s, mapnik::color const& c )
/** Helper for class bool */
class boolean {
public:
boolean() {}
boolean() : b_(false) {}
boolean(bool b) : b_(b) {}
boolean(boolean const& b) : b_(b.b_) {}