Permalink
Browse files

+ move mapnik::context_ptr to initialization list

  • Loading branch information...
1 parent 3891922 commit 3f681a7504cd89ebb26cbaa668f2fe919b68766e @artemp artemp committed Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/input/shape/shape_index_featureset.cpp
@@ -44,15 +44,15 @@ shape_index_featureset<filterT>::shape_index_featureset(filterT const& filter,
std::string const& shape_name,
int row_limit)
: filter_(filter),
+ ctx_(boost::make_shared<mapnik::context_type>()),
shape_(shape),
tr_(new transcoder(encoding)),
row_limit_(row_limit),
count_(0)
{
- ctx_ = boost::make_shared<mapnik::context_type>();
shape_.shp().skip(100);
setup_attributes(ctx_, attribute_names, shape_name, shape_,attr_ids_);
-
+
boost::shared_ptr<shape_file> index = shape_.index();
if (index)
{

0 comments on commit 3f681a7

Please sign in to comment.