diff options
Diffstat (limited to 'src/Boolean.cpp')
| -rw-r--r-- | src/Boolean.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Boolean.cpp b/src/Boolean.cpp index 9ec1a63..2a5e303 100644 --- a/src/Boolean.cpp +++ b/src/Boolean.cpp | |||
| @@ -40,6 +40,8 @@ Boolean::Boolean(const PList::Boolean& b) : Node(PLIST_BOOLEAN) | |||
| 40 | 40 | ||
| 41 | Boolean& Boolean::operator=(const PList::Boolean& b) | 41 | Boolean& Boolean::operator=(const PList::Boolean& b) |
| 42 | { | 42 | { |
| 43 | if (this == &b) return *this; | ||
| 44 | |||
| 43 | plist_free(_node); | 45 | plist_free(_node); |
| 44 | _node = plist_copy(b.GetPlist()); | 46 | _node = plist_copy(b.GetPlist()); |
| 45 | return *this; | 47 | return *this; |
