Restore const iterators replaced in #1107 (#1128)

Also make sure that the lines calling std algorithms are not
excessively long.
This commit is contained in:
Urs Fleisch
2023-09-06 20:59:01 +02:00
committed by GitHub
parent 524b588a1e
commit 47c4e0859c
9 changed files with 22 additions and 11 deletions

View File

@ -191,7 +191,8 @@ void Ogg::XiphComment::setTrack(unsigned int i)
bool Ogg::XiphComment::isEmpty() const
{
return std::all_of(d->fieldListMap.begin(), d->fieldListMap.end(), [](const auto &field) { return field.second.isEmpty(); });
return std::all_of(d->fieldListMap.cbegin(), d->fieldListMap.cend(),
[](const auto &field) { return field.second.isEmpty(); });
}
unsigned int Ogg::XiphComment::fieldCount() const