mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Clang: reduce warnings, nullptr, unused parameters
This commit is contained in:
parent
34761c4214
commit
e3e519c06f
6 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue