Clang: reduce warnings, nullptr, unused parameters

This commit is contained in:
Adriaan de Groot 2017-09-21 04:04:01 -04:00
parent 34761c4214
commit e3e519c06f
6 changed files with 14 additions and 14 deletions

View file

@ -270,8 +270,8 @@ PartitionCoreModule::deletePartition( Device* device, Partition* partition )
if ( !KPMHelpers::isPartitionFreeSpace( childPartition ) )
lst << childPartition;
for ( auto partition : lst )
deletePartition( device, partition );
for ( auto childPartition : lst )
deletePartition( device, childPartition );
}
QList< Calamares::job_ptr >& jobs = deviceInfo->jobs;
@ -441,7 +441,7 @@ PartitionCoreModule::osproberEntries() const
}
void
PartitionCoreModule::refreshPartition( Device* device, Partition* partition )
PartitionCoreModule::refreshPartition( Device* device, Partition* )
{
// Keep it simple for now: reset the model. This can be improved to cause
// the model to emit dataChanged() for the affected row instead, avoiding