mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Handle self-assignment (#1114)
Found with cert-oop54-cpp Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
f69c21c8e6
commit
bbb8221301
@ -183,6 +183,9 @@ StringList &PropertyMap::unsupportedData()
|
||||
|
||||
PropertyMap &PropertyMap::operator=(const PropertyMap &other)
|
||||
{
|
||||
if(this == &other)
|
||||
return *this;
|
||||
|
||||
SimplePropertyMap::operator=(other);
|
||||
*d = *other.d;
|
||||
return *this;
|
||||
|
Loading…
Reference in New Issue
Block a user