mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 04:54:19 -04:00
Handle self-assignment (#1114)
Found with cert-oop54-cpp Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user