+ avoid usage of static string where it's not needed

This commit is contained in:
Lucio Asnaghi 2010-11-14 14:49:42 +00:00
parent fc5f234567
commit dfdfe15853
2 changed files with 5 additions and 8 deletions

View file

@ -137,8 +137,6 @@ void shape_datasource::bind() const
shape_datasource::~shape_datasource() {}
const std::string shape_datasource::name_="shape";
void shape_datasource::init(shape_io& shape) const
{
//first read header from *.shp
@ -202,6 +200,11 @@ void shape_datasource::init(shape_io& shape) const
}
std::string shape_datasource::name()
{
return "shape";
}
int shape_datasource::type() const
{
return type_;
@ -213,11 +216,6 @@ layer_descriptor shape_datasource::get_descriptor() const
return desc_;
}
std::string shape_datasource::name()
{
return name_;
}
featureset_ptr shape_datasource::features(const query& q) const
{
if (!is_bound_) bind();

View file

@ -64,7 +64,6 @@ private:
mutable box2d<double> extent_;
mutable bool indexed_;
mutable layer_descriptor desc_;
static const std::string name_;
};
#endif //SHAPE_HPP