[partition] Don't redundantly specify value binding in lambda

This commit is contained in:
Adriaan de Groot 2024-04-02 23:28:42 +02:00
parent 14c8893b03
commit fbde737802

View File

@ -223,7 +223,7 @@ PartitionViewStep::prettyStatus() const
const QList< PartitionCoreModule::SummaryInfo > list = m_core->createSummaryInfo();
cDebug() << "Summary for Partition" << list.length() << choice;
auto joinDiskInfo = [ choice = choice ]( QString& s, const PartitionCoreModule::SummaryInfo& i )
auto joinDiskInfo = [ choice ]( QString& s, const PartitionCoreModule::SummaryInfo& i )
{ return s + diskDescription( 1, i, choice ); };
const QString diskInfoLabel = std::accumulate( list.begin(), list.end(), QString(), joinDiskInfo );
const QString jobsLabel = jobDescriptions( jobs() ).join( QStringLiteral( "<br/>" ) );