summaryrefslogtreecommitdiff
path: root/src/location/places/qplaceicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/places/qplaceicon.cpp')
-rw-r--r--src/location/places/qplaceicon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/places/qplaceicon.cpp b/src/location/places/qplaceicon.cpp
index 5fa051b4..8db4dfe0 100644
--- a/src/location/places/qplaceicon.cpp
+++ b/src/location/places/qplaceicon.cpp
@@ -143,6 +143,9 @@ QPlaceIcon::~QPlaceIcon()
*/
QPlaceIcon &QPlaceIcon::operator=(const QPlaceIcon &other)
{
+ if (this == &other)
+ return *this;
+
d = other.d;
return *this;
}