From 4227fd5d698d069a92917cfea9ce9139435d3f12 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 18 Nov 2020 16:15:59 +0000 Subject: [PATCH] c++ style casts --- plugins/input/csv/csv_index_featureset.cpp | 4 ++-- plugins/input/geojson/geojson_index_featureset.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/input/csv/csv_index_featureset.cpp b/plugins/input/csv/csv_index_featureset.cpp index c1701e5cf..1fa76fbaa 100644 --- a/plugins/input/csv/csv_index_featureset.cpp +++ b/plugins/input/csv/csv_index_featureset.cpp @@ -117,8 +117,8 @@ mapnik::feature_ptr csv_index_featureset::next() { auto pos = *itr_++; #if defined(MAPNIK_MEMORY_MAPPED_FILE) - char const* start = (char const*)mapped_region_->get_address() + pos.off; - char const* end = start + pos.size; + char const* start = static_cast(mapped_region_->get_address()) + pos.off; + char const* end = start + pos.size; #else std::fseek(file_.get(), pos.off, SEEK_SET); std::vector record; diff --git a/plugins/input/geojson/geojson_index_featureset.cpp b/plugins/input/geojson/geojson_index_featureset.cpp index d3a4933ec..8b6021e10 100644 --- a/plugins/input/geojson/geojson_index_featureset.cpp +++ b/plugins/input/geojson/geojson_index_featureset.cpp @@ -88,7 +88,7 @@ mapnik::feature_ptr geojson_index_featureset::next() { auto pos = *itr_++; #if defined(MAPNIK_MEMORY_MAPPED_FILE) - char const* start = (char const*)mapped_region_->get_address() + pos.off; + char const* start = static_cast(mapped_region_->get_address()) + pos.off; char const* end = start + pos.size; #else std::fseek(file_.get(), pos.off, SEEK_SET);