[libcalamares] Simplify collecting the maintainers info

This commit is contained in:
Adriaan de Groot 2024-04-28 17:38:35 +02:00
parent d6c6b7c64b
commit 4c8e91dc70

View File

@ -48,14 +48,12 @@ static constexpr const Maintainer maintainers[] = {
static QString static QString
aboutMaintainers() aboutMaintainers()
{ {
return std::accumulate( std::cbegin( maintainers ), QStringList s;
std::cend( maintainers ), for ( const auto& m : maintainers )
QString(), {
[]( QString& s, const Maintainer& m ) s.append( m.text() );
{ }
s += m.text(); return s.join( QString() );
return s;
} );
} }
static QString static QString