From 60a37e36d0f1991f80deb5f3c26cf3585914d765 Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Mon, 21 Oct 2024 18:27:00 +0200 Subject: [PATCH] Modernisation: Revert deletion of the cargs_ --- src/geo_iterator/grib_iterator_class_gen.cc | 8 ++++---- src/geo_iterator/grib_iterator_class_gen.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/geo_iterator/grib_iterator_class_gen.cc b/src/geo_iterator/grib_iterator_class_gen.cc index ea813dd8b..3f8fadc02 100644 --- a/src/geo_iterator/grib_iterator_class_gen.cc +++ b/src/geo_iterator/grib_iterator_class_gen.cc @@ -22,11 +22,11 @@ int Gen::init(grib_handle* h, grib_arguments* args) const char* s_rawData = NULL; const char* s_numPoints = NULL; long numberOfPoints = 0; - int carg = 1; + int carg_ = 1; - s_numPoints = grib_arguments_get_name(h, args, carg++); - missingValue_ = grib_arguments_get_name(h, args, carg++); - s_rawData = grib_arguments_get_name(h, args, carg++); + s_numPoints = grib_arguments_get_name(h, args, carg_++); + missingValue_ = grib_arguments_get_name(h, args, carg_++); + s_rawData = grib_arguments_get_name(h, args, carg_++); data_ = NULL; if ((err = grib_get_size(h, s_rawData, &dli)) != GRIB_SUCCESS) diff --git a/src/geo_iterator/grib_iterator_class_gen.h b/src/geo_iterator/grib_iterator_class_gen.h index ace2c0232..0cca14c08 100644 --- a/src/geo_iterator/grib_iterator_class_gen.h +++ b/src/geo_iterator/grib_iterator_class_gen.h @@ -29,6 +29,7 @@ public: bool has_next() const override; protected: + int carg_; double* lats_; double* lons_;