db/Helpers: use set::emplace()
This commit is contained in:
parent
0de42d56fc
commit
b32ec857b1
@ -194,11 +194,19 @@ StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums,
|
|||||||
|
|
||||||
switch (item.type) {
|
switch (item.type) {
|
||||||
case TAG_ARTIST:
|
case TAG_ARTIST:
|
||||||
|
#if defined(__clang__) || GCC_CHECK_VERSION(4,8)
|
||||||
|
artists.emplace(item.value);
|
||||||
|
#else
|
||||||
artists.insert(item.value);
|
artists.insert(item.value);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TAG_ALBUM:
|
case TAG_ALBUM:
|
||||||
|
#if defined(__clang__) || GCC_CHECK_VERSION(4,8)
|
||||||
|
albums.emplace(item.value);
|
||||||
|
#else
|
||||||
albums.insert(item.value);
|
albums.insert(item.value);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user