diff --git a/benchmark/src/test_proj_transform1.cpp b/benchmark/src/test_proj_transform1.cpp index fd8cf6a7b..a87f22ea3 100644 --- a/benchmark/src/test_proj_transform1.cpp +++ b/benchmark/src/test_proj_transform1.cpp @@ -9,7 +9,7 @@ class test : public benchmark::test_case std::string dest_; mapnik::box2d from_; mapnik::box2d to_; - bool defer_proj4_init_; + bool defer_proj_init_; public: test(mapnik::parameters const& params, std::string const& src, @@ -22,11 +22,11 @@ public: dest_(dest), from_(from), to_(to), - defer_proj4_init_(defer_proj) {} + defer_proj_init_(defer_proj) {} bool validate() const { - mapnik::projection src(src_,defer_proj4_init_); - mapnik::projection dest(dest_,defer_proj4_init_); + mapnik::projection src(src_,defer_proj_init_); + mapnik::projection dest(dest_,defer_proj_init_); mapnik::proj_transform tr(src,dest); mapnik::box2d bbox = from_; if (!tr.forward(bbox)) return false; @@ -38,15 +38,15 @@ public: } bool operator()() const { + mapnik::projection src(src_,defer_proj_init_); + mapnik::projection dest(dest_,defer_proj_init_); + mapnik::proj_transform tr(src,dest); for (std::size_t i=0;i box(j,k,j,k); if (!tr.forward(box)) throw std::runtime_error("could not transform coords"); }