SongFilter: add assertion to StringMatch()
This commit is contained in:
parent
eb86fdfbea
commit
f06fe76d35
@ -82,6 +82,8 @@ SongFilter::Item::StringMatch(const char *s) const
|
|||||||
assert(s != nullptr);
|
assert(s != nullptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
assert(tag != LOCATE_TAG_MODIFIED_SINCE);
|
||||||
|
|
||||||
if (fold_case) {
|
if (fold_case) {
|
||||||
const std::string folded = IcuCaseFold(s);
|
const std::string folded = IcuCaseFold(s);
|
||||||
return folded.find(value) != folded.npos;
|
return folded.find(value) != folded.npos;
|
||||||
|
Loading…
Reference in New Issue
Block a user