summaryrefslogtreecommitdiffstats
path: root/src/Date.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Date.cpp')
-rw-r--r--src/Date.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Date.cpp b/src/Date.cpp
index cbfa123..214220b 100644
--- a/src/Date.cpp
+++ b/src/Date.cpp
@@ -40,6 +40,8 @@ Date::Date(const PList::Date& d) : Node(PLIST_DATE)
40 40
41Date& Date::operator=(const PList::Date& d) 41Date& Date::operator=(const PList::Date& d)
42{ 42{
43 if (this == &d) return *this;
44
43 plist_free(_node); 45 plist_free(_node);
44 _node = plist_copy(d.GetPlist()); 46 _node = plist_copy(d.GetPlist());
45 return *this; 47 return *this;