+ avoid using static string as datasource name

This commit is contained in:
Lucio Asnaghi 2010-11-16 17:54:13 +00:00
parent 76f1de2033
commit 3349cb5823
2 changed files with 4 additions and 7 deletions

View file

@ -322,11 +322,9 @@ void postgis_datasource::bind() const
is_bound_ = true;
}
std::string const postgis_datasource::name_="postgis";
std::string postgis_datasource::name()
{
return name_;
return "postgis";
}
int postgis_datasource::type() const

View file

@ -70,7 +70,6 @@ class postgis_datasource : public datasource
mutable layer_descriptor desc_;
ConnectionCreator<Connection> creator_;
bool multiple_geometries_;
static const std::string name_;
const std::string bbox_token_;
const std::string scale_denom_token_;
bool persist_connection_;