]> granicus.if.org Git - taglib/commitdiff
Actually overwrite the value, as documented.
authorScott Wheeler <wheeler@kde.org>
Tue, 13 Feb 2007 05:43:10 +0000 (05:43 +0000)
committerScott Wheeler <wheeler@kde.org>
Tue, 13 Feb 2007 05:43:10 +0000 (05:43 +0000)
BUG:141496

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@633078 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/toolkit/tmap.tcc

index d408d394addd143bbb1baf6dedcff6d3ec350e3d..b01517ec172ee87c8bbfe35cb2a51c37ff490567 100644 (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;
 }