explicitly initialize all members of layer class in ctor
This commit is contained in:
parent
9ecdc839b5
commit
ed3bc1d411
1 changed files with 6 additions and 3 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
namespace mapnik
|
||||
{
|
||||
|
||||
layer::layer(std::string const& name, std::string const& srs)
|
||||
: name_(name),
|
||||
srs_(srs),
|
||||
|
@ -39,8 +40,11 @@ layer::layer(std::string const& name, std::string const& srs)
|
|||
queryable_(false),
|
||||
clear_label_cache_(false),
|
||||
cache_features_(false),
|
||||
group_by_(""),
|
||||
ds_() {}
|
||||
group_by_(),
|
||||
styles_(),
|
||||
ds_(),
|
||||
buffer_size_(0) {
|
||||
}
|
||||
|
||||
layer::layer(layer const& rhs)
|
||||
: name_(rhs.name_),
|
||||
|
@ -230,7 +234,6 @@ void layer::reset_buffer_size()
|
|||
buffer_size_.reset();
|
||||
}
|
||||
|
||||
|
||||
box2d<double> layer::envelope() const
|
||||
{
|
||||
if (ds_) return ds_->envelope();
|
||||
|
|
Loading…
Reference in a new issue