remove std::make_pair

make_pair is an old C++98 function that can be replaced by modern
shorter constructs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-09-07 20:58:23 -07:00
parent 15f419e1cb
commit 6ec5089cc9
10 changed files with 15 additions and 18 deletions

View File

@@ -78,7 +78,7 @@ static void
CollectGroupCounts(TagCountMap &map, const Tag &tag,
const char *value) noexcept
{
auto &s = map.insert(std::make_pair(value, SearchStats())).first->second;
auto &s = map.emplace(value, SearchStats()).first->second;
++s.n_songs;
if (!tag.duration.IsNegative())
s.total_duration += tag.duration;