mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 49897
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
// Разделитель ;
|
||||
|
||||
Reference in New Issue
Block a user