diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-03-07 11:57:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-07 11:57:55 +0100 |
| commit | 4cc4e038bc9ac868156884f58b02d89849962f08 (patch) | |
| tree | 6402b7c11f07f3cc1aa06680a98b5935cc96872b /src/iso19111/util.cpp | |
| parent | 5b9d009293db4021b57a4949f467f2dd1081870a (diff) | |
| parent | e3b0dda249ad58ed6cf0f7ed44924659b9fee50f (diff) | |
| download | PROJ-4cc4e038bc9ac868156884f58b02d89849962f08.tar.gz PROJ-4cc4e038bc9ac868156884f58b02d89849962f08.zip | |
Merge pull request #2560 from rouault/coverityscan_fixes
Several fixes/improvements spotted by CoverityScan
Diffstat (limited to 'src/iso19111/util.cpp')
| -rw-r--r-- | src/iso19111/util.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/iso19111/util.cpp b/src/iso19111/util.cpp index 21d45e44..7b69f4aa 100644 --- a/src/iso19111/util.cpp +++ b/src/iso19111/util.cpp @@ -81,6 +81,17 @@ BaseObjectNNPtr::~BaseObjectNNPtr() = default; // --------------------------------------------------------------------------- +//! @cond Doxygen_Suppress +// cppcheck-suppress operatorEqVarError +BaseObject &BaseObject::operator=(BaseObject &&) { + d->self_.reset(); + return *this; +} + +//! @endcond + +// --------------------------------------------------------------------------- + /** Keep a reference to ourselves as an internal weak pointer. So that * extractGeographicBaseObject() can later return a shared pointer on itself. */ |
