db/Helpers: use set::emplace()

This commit is contained in:
Max Kellermann 2014-04-24 18:17:07 +02:00
parent 0de42d56fc
commit b32ec857b1

View File

@ -194,11 +194,19 @@ StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums,
switch (item.type) {
case TAG_ARTIST:
#if defined(__clang__) || GCC_CHECK_VERSION(4,8)
artists.emplace(item.value);
#else
artists.insert(item.value);
#endif
break;
case TAG_ALBUM:
#if defined(__clang__) || GCC_CHECK_VERSION(4,8)
albums.emplace(item.value);
#else
albums.insert(item.value);
#endif
break;
default: