use boost::shared_ptr<datasource>

This commit is contained in:
Artem Pavlenko 2006-10-09 10:28:48 +00:00
parent e2d645ad80
commit 514f500bfb

View file

@ -83,7 +83,7 @@ namespace mapnik
void apply_to_layer(Layer const& lay,Processor & p) void apply_to_layer(Layer const& lay,Processor & p)
{ {
p.start_layer_processing(lay); p.start_layer_processing(lay);
datasource *ds=lay.datasource().get(); boost::shared_ptr<datasource> ds=lay.datasource();
if (ds) if (ds)
{ {
Envelope<double> const& bbox=m_.getCurrentExtent(); Envelope<double> const& bbox=m_.getCurrentExtent();