mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Changed name of variable
This commit is contained in:
parent
56649c5513
commit
3db70e6bea
|
@ -95,14 +95,14 @@ absl::Status GdalMain(std::string filename) {
|
||||||
|
|
||||||
// Checking that GetGeoTransform is valid.
|
// Checking that GetGeoTransform is valid.
|
||||||
std::vector<double> adf_geo_transform(6);
|
std::vector<double> adf_geo_transform(6);
|
||||||
sapi::v::Array<double> adfGeoTransformArray(&adf_geo_transform[0],
|
sapi::v::Array<double> adf_geo_transform_array(&adf_geo_transform[0],
|
||||||
adf_geo_transform.size());
|
adf_geo_transform.size());
|
||||||
|
|
||||||
// For this function that returns CPLErr, the error-handling must be done
|
// For this function that returns CPLErr, the error-handling must be done
|
||||||
// analyzing the returning object.
|
// analyzing the returning object.
|
||||||
// Same for GDALReturnsIO from below.
|
// Same for GDALReturnsIO from below.
|
||||||
CPLErr err;
|
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 GDALGetGeoTransform generates an error.
|
||||||
if (err != CE_None) {
|
if (err != CE_None) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user