ensure members are initialized (refs #1114)
This commit is contained in:
parent
90fb50b158
commit
e9c043a42a
5 changed files with 13 additions and 7 deletions
|
@ -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 )
|
||||
|
|
|
@ -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_) {}
|
||||
|
||||
|
|
|
@ -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_;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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_) {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue