features_with_context: no need for default arg

This commit is contained in:
Dane Springmeyer 2013-11-03 22:21:57 -08:00
parent f1c381e2c6
commit 2d268d3a95
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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());
}
}

View file

@ -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;