From 0e701dd899b11c7e3830c758d8ac8a7ccea546ab Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 2 Feb 2012 08:58:20 -0800 Subject: [PATCH] initialize context in init list --- plugins/input/shape/shape_featureset.cpp | 4 ++-- plugins/input/shape/shape_featureset.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/input/shape/shape_featureset.cpp b/plugins/input/shape/shape_featureset.cpp index 9e3055d7e..6b5cbaa22 100644 --- a/plugins/input/shape/shape_featureset.cpp +++ b/plugins/input/shape/shape_featureset.cpp @@ -46,9 +46,9 @@ shape_featureset::shape_featureset(filterT const& filter, tr_(new transcoder(encoding)), file_length_(file_length), row_limit_(row_limit), - count_(0) + count_(0), + ctx_(boost::make_shared()) { - ctx_ = boost::make_shared(); shape_.shp().skip(100); setup_attributes(ctx_, attribute_names, shape_name, shape_,attr_ids_); } diff --git a/plugins/input/shape/shape_featureset.hpp b/plugins/input/shape/shape_featureset.hpp index 51d02fa0f..94cea12ef 100644 --- a/plugins/input/shape/shape_featureset.hpp +++ b/plugins/input/shape/shape_featureset.hpp @@ -43,7 +43,6 @@ template class shape_featureset : public Featureset { filterT filter_; - context_ptr ctx_; shape_io shape_; box2d query_ext_; boost::scoped_ptr tr_; @@ -51,6 +50,7 @@ class shape_featureset : public Featureset std::vector attr_ids_; const int row_limit_; mutable int count_; + context_ptr ctx_; public: shape_featureset(filterT const& filter,