mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
[partition] Idiomatic use of Calamares::JobList
This commit is contained in:
parent
e2b71e669e
commit
8d451622db
4 changed files with 6 additions and 6 deletions
|
@ -402,7 +402,7 @@ PartitionCoreModule::deletePartition( Device* device, Partition* partition )
|
|||
deletePartition( device, childPartition );
|
||||
}
|
||||
|
||||
QList< Calamares::job_ptr >& jobs = deviceInfo->jobs;
|
||||
Calamares::JobList& jobs = deviceInfo->jobs;
|
||||
if ( partition->state() == KPM_PARTITION_STATE(New) )
|
||||
{
|
||||
// First remove matching SetPartFlagsJobs
|
||||
|
@ -496,10 +496,10 @@ PartitionCoreModule::setPartitionFlags( Device* device,
|
|||
PartitionInfo::setFlags( partition, flags );
|
||||
}
|
||||
|
||||
QList< Calamares::job_ptr >
|
||||
Calamares::JobList
|
||||
PartitionCoreModule::jobs() const
|
||||
{
|
||||
QList< Calamares::job_ptr > lst;
|
||||
Calamares::JobList lst;
|
||||
QList< Device* > devices;
|
||||
|
||||
#ifdef DEBUG_PARTITION_UNSAFE
|
||||
|
|
|
@ -247,7 +247,7 @@ private:
|
|||
QScopedPointer< Device > device;
|
||||
QScopedPointer< PartitionModel > partitionModel;
|
||||
const QScopedPointer< Device > immutableDevice;
|
||||
QList< Calamares::job_ptr > jobs;
|
||||
Calamares::JobList jobs;
|
||||
|
||||
// To check if LVM VGs are deactivated
|
||||
bool isAvailable;
|
||||
|
|
|
@ -619,7 +619,7 @@ PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||
}
|
||||
|
||||
|
||||
QList< Calamares::job_ptr >
|
||||
Calamares::JobList
|
||||
PartitionViewStep::jobs() const
|
||||
{
|
||||
return m_core->jobs();
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
|
||||
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
||||
|
||||
QList< Calamares::job_ptr > jobs() const override;
|
||||
Calamares::JobList jobs() const override;
|
||||
|
||||
Calamares::RequirementsList checkRequirements() override;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue