diff options
Diffstat (limited to 'src/location/qgeoboundingarea.cpp')
-rw-r--r-- | src/location/qgeoboundingarea.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/qgeoboundingarea.cpp b/src/location/qgeoboundingarea.cpp index dbad8fec..195cda6c 100644 --- a/src/location/qgeoboundingarea.cpp +++ b/src/location/qgeoboundingarea.cpp @@ -198,6 +198,9 @@ bool QGeoBoundingArea::operator!=(const QGeoBoundingArea &other) const QGeoBoundingArea &QGeoBoundingArea::operator=(const QGeoBoundingArea &other) { + if (this == &other) + return *this; + d_ptr = other.d_ptr; return *this; } |