mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Make removeField() actually remove the map content, not just
empty the list. Also added an erase method to Map that works on keys rather than itterators. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@572681 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -130,6 +130,14 @@ Map<Key, T> &Map<Key,T>::erase(Iterator it)
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class Key, class T>
|
||||
Map<Key, T> &Map<Key,T>::erase(const Key &key)
|
||||
{
|
||||
detach();
|
||||
d->map.erase(find(key));
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class Key, class T>
|
||||
TagLib::uint Map<Key, T>::size() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user