SongFilter: use std::list::emplace_back()

This commit is contained in:
Max Kellermann 2018-07-24 19:33:15 +02:00
parent 05fb624031
commit a54f9ede2e

View File

@ -169,7 +169,7 @@ SongFilter::Item::MatchNN(const LightSong &song) const noexcept
SongFilter::SongFilter(unsigned tag, const char *value, bool fold_case) SongFilter::SongFilter(unsigned tag, const char *value, bool fold_case)
{ {
items.push_back(Item(tag, value, fold_case)); items.emplace_back(tag, value, fold_case);
} }
SongFilter::~SongFilter() SongFilter::~SongFilter()
@ -208,9 +208,9 @@ SongFilter::Parse(const char *tag_string, const char *value, bool fold_case)
} }
if (tag == LOCATE_TAG_MODIFIED_SINCE) if (tag == LOCATE_TAG_MODIFIED_SINCE)
items.push_back(Item(tag, ParseTimeStamp(value))); items.emplace_back(tag, ParseTimeStamp(value));
else else
items.push_back(Item(tag, value, fold_case)); items.emplace_back(tag, value, fold_case);
} }
void void