mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix bug 49897
This commit is contained in:
@ -102,8 +102,11 @@ struct STitleInfo
|
|||||||
// Разделитель не важен ,
|
// Разделитель не важен ,
|
||||||
std::wstring getGenres()
|
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", ")); });
|
[] (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