diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-11-15 13:27:33 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-11-15 13:38:16 +0100 |
| commit | 41347c60637fe6e7cae307e07ad0430eb79652d1 (patch) | |
| tree | 23b921a030b24a3a2edb74917e294c5b3a1930e7 /src | |
| parent | 4ad1477c24c3da4be6c7962606e6f9d47336b6a3 (diff) | |
| download | PROJ-41347c60637fe6e7cae307e07ad0430eb79652d1.tar.gz PROJ-41347c60637fe6e7cae307e07ad0430eb79652d1.zip | |
Fix clang warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/coordinateoperation.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/coordinateoperation.cpp b/src/coordinateoperation.cpp index 645bd0ed..33e6f422 100644 --- a/src/coordinateoperation.cpp +++ b/src/coordinateoperation.cpp @@ -4329,7 +4329,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const { common::Length( parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_NORTHING))); conv->setCRSs(this, false); - return conv; + return std::move(conv); } if (current_epsg_code == EPSG_CODE_METHOD_MERCATOR_VARIANT_B && @@ -4350,7 +4350,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const { common::Length( parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_NORTHING))); conv->setCRSs(this, false); - return conv; + return std::move(conv); } if (current_epsg_code == EPSG_CODE_METHOD_LAMBERT_CONIC_CONFORMAL_1SP && @@ -4385,7 +4385,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const { common::Length( parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_NORTHING))); conv->setCRSs(this, false); - return conv; + return std::move(conv); } else { const double K = k0 * m0 / std::pow(t0, n); const double phi1 = @@ -4441,7 +4441,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const { EPSG_CODE_PARAMETER_FALSE_EASTING)), common::Length(FN_corrected_rounded)); conv->setCRSs(this, false); - return conv; + return std::move(conv); } } @@ -4455,7 +4455,7 @@ ConversionPtr Conversion::convertToOtherMethod(int targetEPSGCode) const { parameterValueMeasure(EPSG_CODE_PARAMETER_FALSE_EASTING)), common::Length(FN)); conv->setCRSs(this, false); - return conv; + return std::move(conv); } } @@ -4519,7 +4519,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 conv; + return std::move(conv); } return nullptr; |
