aboutsummaryrefslogtreecommitdiff
path: root/src/grids.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-03-12 14:40:49 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-03-12 19:38:24 +0100
commit66f81bec4a642719bb74bfefe84059213c9a07bb (patch)
treecae8c6fd041562e40364292107c604acc34f93fe /src/grids.cpp
parentca3caf0e976e95a739963567057654cb8909bfb9 (diff)
downloadPROJ-66f81bec4a642719bb74bfefe84059213c9a07bb.tar.gz
PROJ-66f81bec4a642719bb74bfefe84059213c9a07bb.zip
Fix build with gcc 4.8.5 (fixes #2062)
Diffstat (limited to 'src/grids.cpp')
-rw-r--r--src/grids.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/grids.cpp b/src/grids.cpp
index b9da072c..7842d39b 100644
--- a/src/grids.cpp
+++ b/src/grids.cpp
@@ -1373,7 +1373,8 @@ VerticalShiftGridSet::open(PJ_CONTEXT *ctx, const std::string &filename) {
if (IsTIFF(header_size, header)) {
#ifdef TIFF_ENABLED
- auto set = GTiffVGridShiftSet::open(ctx, std::move(fp), actualName);
+ auto set = std::unique_ptr<VerticalShiftGridSet>(
+ GTiffVGridShiftSet::open(ctx, std::move(fp), actualName));
if (!set)
pj_ctx_set_errno(ctx, PJD_ERR_FAILED_TO_LOAD_GRID);
return set;
@@ -2351,7 +2352,8 @@ HorizontalShiftGridSet::open(PJ_CONTEXT *ctx, const std::string &filename) {
} else if (IsTIFF(header_size,
reinterpret_cast<const unsigned char *>(header))) {
#ifdef TIFF_ENABLED
- auto set = GTiffHGridShiftSet::open(ctx, std::move(fp), actualName);
+ auto set = std::unique_ptr<HorizontalShiftGridSet>(
+ GTiffHGridShiftSet::open(ctx, std::move(fp), actualName));
if (!set)
pj_ctx_set_errno(ctx, PJD_ERR_FAILED_TO_LOAD_GRID);
return set;
@@ -2686,8 +2688,8 @@ GenericShiftGridSet::open(PJ_CONTEXT *ctx, const std::string &filename) {
if (IsTIFF(header_size, header)) {
#ifdef TIFF_ENABLED
- auto set =
- GTiffGenericGridShiftSet::open(ctx, std::move(fp), actualName);
+ auto set = std::unique_ptr<GenericShiftGridSet>(
+ GTiffGenericGridShiftSet::open(ctx, std::move(fp), actualName));
if (!set)
pj_ctx_set_errno(ctx, PJD_ERR_FAILED_TO_LOAD_GRID);
return set;