mirror of
https://github.com/taglib/taglib.git
synced 2026-02-13 19:53:06 -05:00
Map::erase() can take a key directly so no need to call find() beforehand.
This commit is contained in:
@ -172,9 +172,7 @@ bool ASF::Tag::contains(const String &key) const
|
||||
|
||||
void ASF::Tag::removeItem(const String &key)
|
||||
{
|
||||
AttributeListMap::Iterator it = d->attributeListMap.find(key);
|
||||
if(it != d->attributeListMap.end())
|
||||
d->attributeListMap.erase(it);
|
||||
d->attributeListMap.erase(key);
|
||||
}
|
||||
|
||||
ASF::AttributeList ASF::Tag::attribute(const String &name) const
|
||||
|
||||
Reference in New Issue
Block a user