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