diff --git a/taglib/toolkit/tmap.tcc b/taglib/toolkit/tmap.tcc index d408d394..b01517ec 100644 --- a/taglib/toolkit/tmap.tcc +++ b/taglib/toolkit/tmap.tcc @@ -84,8 +84,7 @@ template Map &Map::insert(const Key &key, const T &value) { detach(); - std::pair item(key, value); - d->map.insert(item); + d->map[key] = value; return *this; }