From 3db70e6bea66f63475ccc2eecd25f33850c24698 Mon Sep 17 00:00:00 2001 From: doinachiroiu Date: Thu, 24 Sep 2020 14:36:30 +0000 Subject: [PATCH] Changed name of variable --- oss-internship-2020/gdal/raster.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oss-internship-2020/gdal/raster.cc b/oss-internship-2020/gdal/raster.cc index ba28306..948e9b1 100644 --- a/oss-internship-2020/gdal/raster.cc +++ b/oss-internship-2020/gdal/raster.cc @@ -95,14 +95,14 @@ absl::Status GdalMain(std::string filename) { // Checking that GetGeoTransform is valid. std::vector adf_geo_transform(6); - sapi::v::Array adfGeoTransformArray(&adf_geo_transform[0], + sapi::v::Array adf_geo_transform_array(&adf_geo_transform[0], adf_geo_transform.size()); // For this function that returns CPLErr, the error-handling must be done // analyzing the returning object. // Same for GDALReturnsIO from below. CPLErr err; - SAPI_ASSIGN_OR_RETURN(err, api.GDALGetGeoTransform(&ptr_dataset, adfGeoTransformArray.PtrBoth())); + SAPI_ASSIGN_OR_RETURN(err, api.GDALGetGeoTransform(&ptr_dataset, adf_geo_transform_array.PtrBoth())); // If GDALGetGeoTransform generates an error. if (err != CE_None) {