Commit b32ec857 authored by Max Kellermann's avatar Max Kellermann

db/Helpers: use set::emplace()

parent 0de42d56
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment