diff --git a/utils/mapnik-index/process_geojson_file.cpp b/utils/mapnik-index/process_geojson_file.cpp index fb393a938..203c81c67 100644 --- a/utils/mapnik-index/process_geojson_file.cpp +++ b/utils/mapnik-index/process_geojson_file.cpp @@ -82,7 +82,7 @@ std::pair> 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);