Fix bug 49897

This commit is contained in:
Kulikova Svetlana
2021-04-23 17:20:08 +03:00
parent 758cd5d599
commit 7ca6848e8e

View File

@ -102,8 +102,11 @@ struct STitleInfo
// Разделитель не важен ,
std::wstring getGenres()
{
return std::accumulate(m_arGenres.begin(), m_arGenres.end(), std::wstring(),
std::wstring sRes = std::accumulate(m_arGenres.begin(), m_arGenres.end(), std::wstring(),
[] (std::wstring& sRes, const std::wstring& vElem) { return sRes += (vElem.empty() ? L"" : (vElem + L", ")); });
if (!sRes.empty())
sRes.erase(sRes.end() - 2, sRes.end());
return sRes;
}
// Разделитель ;