Const correctness.

main
Teo Mrnjavac 11 years ago
parent d1151d87cf
commit dbadbf69ec

@ -61,7 +61,7 @@ public:
explicit Job( QObject* parent = nullptr );
virtual ~Job();
virtual QString prettyName() = 0;
virtual QString prettyName() const = 0;
virtual JobResult exec() = 0;
signals:
void running( const Calamares::job_ptr& );

@ -42,7 +42,7 @@ CreatePartitionJob::CreatePartitionJob( Device* device, Partition* partition )
}
QString
CreatePartitionJob::prettyName()
CreatePartitionJob::prettyName() const
{
return tr( "Create partition" ); // FIXME
}

@ -30,7 +30,7 @@ class CreatePartitionJob : public Calamares::Job
Q_OBJECT
public:
CreatePartitionJob( Device* device, Partition* partition );
QString prettyName() override;
QString prettyName() const override;
Calamares::JobResult exec() override;
void updatePreview();

@ -31,7 +31,7 @@ DeletePartitionJob::DeletePartitionJob( Device* device, Partition* partition )
}
QString
DeletePartitionJob::prettyName()
DeletePartitionJob::prettyName() const
{
return tr( "Delete partition %1" ).arg( m_partition->partitionPath() );
}

@ -30,7 +30,7 @@ class DeletePartitionJob : public Calamares::Job
Q_OBJECT
public:
DeletePartitionJob( Device* device, Partition* partition );
QString prettyName() override;
QString prettyName() const override;
Calamares::JobResult exec() override;
void updatePreview();

Loading…
Cancel
Save