diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/db/Helpers.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db/Helpers.cxx b/src/db/Helpers.cxx index 6259d4f40..9a68e0486 100644 --- a/src/db/Helpers.cxx +++ b/src/db/Helpers.cxx @@ -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: |