From 4c8e91dc702ab792885ae130fb1a8686dacbc112 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 28 Apr 2024 17:38:35 +0200 Subject: [PATCH] [libcalamares] Simplify collecting the maintainers info --- src/libcalamares/CalamaresAbout.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/libcalamares/CalamaresAbout.cpp b/src/libcalamares/CalamaresAbout.cpp index 9ecf48547..4ff44356d 100644 --- a/src/libcalamares/CalamaresAbout.cpp +++ b/src/libcalamares/CalamaresAbout.cpp @@ -48,14 +48,12 @@ static constexpr const Maintainer maintainers[] = { static QString aboutMaintainers() { - return std::accumulate( std::cbegin( maintainers ), - std::cend( maintainers ), - QString(), - []( QString& s, const Maintainer& m ) - { - s += m.text(); - return s; - } ); + QStringList s; + for ( const auto& m : maintainers ) + { + s.append( m.text() ); + } + return s.join( QString() ); } static QString