rename open to is_open in utils/mapnik-index/process_geojson_file.cpp

This commit is contained in:
artemp 2016-03-18 10:42:35 +01:00
parent 8f9134c72d
commit 35190e81e0

View file

@ -82,7 +82,7 @@ std::pair<bool,box2d<double>> process_geojson_file(T & boxes, std::string const&
char const* end = start + mapped_region->get_size();
#else
mapnik::util::file file(filename);
if (!file.open())
if (!file)
{
std::clog << "Error : cannot open " << filename << std::endl;
return std::make_pair(false, extent);