aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2019-03-23 23:29:36 +0100
committerGitHub <noreply@github.com>2019-03-23 23:29:36 +0100
commitd089e17fde8a636198cf21f1045fc6bee20d987d (patch)
tree6a9dd883942de1133145fb6f2387f31facfe5ea7 /src
parent5001cd25931706dfc6f1ad6afb35c8da13bf412d (diff)
parent11e3047990c46cd5b705b20caaa70c37713e229f (diff)
downloadPROJ-d089e17fde8a636198cf21f1045fc6bee20d987d.tar.gz
PROJ-d089e17fde8a636198cf21f1045fc6bee20d987d.zip
Merge pull request #1352 from rouault/fix_gcc9_warning
Fix GCC 9 warning about useless std::move()
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/coordinateoperation.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp
index 7ee20758..57cf9832 100644
--- a/src/iso19111/coordinateoperation.cpp
+++ b/src/iso19111/coordinateoperation.cpp
@@ -4816,7 +4816,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const {
common::Length(
parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_NORTHING)));
conv->setCRSs(this, false);
- return std::move(conv);
+ return conv.as_nullable();
}
if (current_epsg_code == EPSG_CODE_METHOD_MERCATOR_VARIANT_B &&
@@ -4837,7 +4837,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const {
common::Length(
parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_NORTHING)));
conv->setCRSs(this, false);
- return std::move(conv);
+ return conv.as_nullable();
}
if (current_epsg_code == EPSG_CODE_METHOD_LAMBERT_CONIC_CONFORMAL_1SP &&
@@ -4872,7 +4872,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const {
common::Length(
parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_NORTHING)));
conv->setCRSs(this, false);
- return std::move(conv);
+ return conv.as_nullable();
} else {
const double K = k0 * m0 / std::pow(t0, n);
const double phi1 =
@@ -4928,7 +4928,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const {
EPSG_CODE_PARAMETER_FALSE_EASTING)),
common::Length(FN_corrected_rounded));
conv->setCRSs(this, false);
- return std::move(conv);
+ return conv.as_nullable();
}
}
@@ -4942,7 +4942,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const {
parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_EASTING)),
common::Length(FN));
conv->setCRSs(this, false);
- return std::move(conv);
+ return conv.as_nullable();
}
}
@@ -5006,7 +5006,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const {
EPSG_CODE_PARAMETER_NORTHING_FALSE_ORIGIN) +
(std::fabs(FN_correction) > 1e-8 ? FN_correction : 0)));
conv->setCRSs(this, false);
- return std::move(conv);
+ return conv.as_nullable();
}
return nullptr;