+ avoid using static string as datasource name
This commit is contained in:
parent
76f1de2033
commit
3349cb5823
2 changed files with 4 additions and 7 deletions
|
@ -322,22 +322,20 @@ void postgis_datasource::bind() const
|
||||||
is_bound_ = true;
|
is_bound_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string const postgis_datasource::name_="postgis";
|
|
||||||
|
|
||||||
std::string postgis_datasource::name()
|
std::string postgis_datasource::name()
|
||||||
{
|
{
|
||||||
return name_;
|
return "postgis";
|
||||||
}
|
}
|
||||||
|
|
||||||
int postgis_datasource::type() const
|
int postgis_datasource::type() const
|
||||||
{
|
{
|
||||||
return type_;
|
return type_;
|
||||||
}
|
}
|
||||||
|
|
||||||
layer_descriptor postgis_datasource::get_descriptor() const
|
layer_descriptor postgis_datasource::get_descriptor() const
|
||||||
{
|
{
|
||||||
if (!is_bound_) bind();
|
if (!is_bound_) bind();
|
||||||
return desc_;
|
return desc_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,6 @@ class postgis_datasource : public datasource
|
||||||
mutable layer_descriptor desc_;
|
mutable layer_descriptor desc_;
|
||||||
ConnectionCreator<Connection> creator_;
|
ConnectionCreator<Connection> creator_;
|
||||||
bool multiple_geometries_;
|
bool multiple_geometries_;
|
||||||
static const std::string name_;
|
|
||||||
const std::string bbox_token_;
|
const std::string bbox_token_;
|
||||||
const std::string scale_denom_token_;
|
const std::string scale_denom_token_;
|
||||||
bool persist_connection_;
|
bool persist_connection_;
|
||||||
|
|
Loading…
Reference in a new issue