SongFilter: use std::list::emplace_back()
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann