diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2022-02-22 20:51:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-22 20:51:05 +0100 |
| commit | 5b7c4575e549d2765da39a9708a42fa6317926f1 (patch) | |
| tree | 32ea9e79e558f0576170cc6fa85e693739b1e7ec /src/iso19111/common.cpp | |
| parent | dd96597e86a0d4df1c6af0e32e1bb6bee1f840dd (diff) | |
| parent | 27d6a335dba16a083f5ecf76e8ce8d6034bb130f (diff) | |
| download | PROJ-5b7c4575e549d2765da39a9708a42fa6317926f1.tar.gz PROJ-5b7c4575e549d2765da39a9708a42fa6317926f1.zip | |
Merge pull request #3072 from rouault/coverity_scan
Fix various issues found by Coverity scan
Diffstat (limited to 'src/iso19111/common.cpp')
| -rw-r--r-- | src/iso19111/common.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iso19111/common.cpp b/src/iso19111/common.cpp index b70845ae..1d7e2030 100644 --- a/src/iso19111/common.cpp +++ b/src/iso19111/common.cpp @@ -120,8 +120,9 @@ UnitOfMeasure &UnitOfMeasure::operator=(const UnitOfMeasure &other) { //! @cond Doxygen_Suppress UnitOfMeasure &UnitOfMeasure::operator=(UnitOfMeasure &&other) { - BaseObject::operator=(std::move(static_cast<BaseObject &&>(other))); *d = std::move(*(other.d)); + other.d = nullptr; + BaseObject::operator=(std::move(static_cast<BaseObject &&>(other))); return *this; } //! @endcond |
