Actually overwrite the value, as documented.

BUG:141496


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@633078 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2007-02-13 05:43:10 +00:00
parent 2aa4195807
commit 2e8c6ea0f4

View File

@ -84,8 +84,7 @@ template <class Key, class T>
Map<Key, T> &Map<Key, T>::insert(const Key &key, const T &value)
{
detach();
std::pair<Key, T> item(key, value);
d->map.insert(item);
d->map[key] = value;
return *this;
}