features_with_context: no need for default arg
This commit is contained in:
parent
f1c381e2c6
commit
2d268d3a95
3 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ public:
|
|||
virtual datasource_t type() const = 0;
|
||||
|
||||
virtual processor_context_ptr get_context(feature_style_context_map&) const { return processor_context_ptr(); }
|
||||
virtual featureset_ptr features_with_context(const query& q,processor_context_ptr ctx= processor_context_ptr()) const
|
||||
virtual featureset_ptr features_with_context(query const& q,processor_context_ptr /*ctx*/) const
|
||||
{
|
||||
// default implementation without context use features method
|
||||
return features(q);
|
||||
|
|
|
@ -656,7 +656,7 @@ featureset_ptr postgis_datasource::features(query const& q) const
|
|||
}
|
||||
else
|
||||
{
|
||||
return features_with_context(q);
|
||||
return features_with_context(q,processor_context_ptr());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
mapnik::datasource::datasource_t type() const;
|
||||
static const char * name();
|
||||
processor_context_ptr get_context(feature_style_context_map &) const;
|
||||
featureset_ptr features_with_context(query const& q, processor_context_ptr ctx= processor_context_ptr()) const;
|
||||
featureset_ptr features_with_context(query const& q, processor_context_ptr ctx) const;
|
||||
featureset_ptr features(query const& q) const;
|
||||
featureset_ptr features_at_point(coord2d const& pt, double tol = 0) const;
|
||||
mapnik::box2d<double> envelope() const;
|
||||
|
|
Loading…
Reference in a new issue