From dbadbf69ece169cd992782ff9c28d834ca0418e6 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 10 Jul 2014 12:06:23 +0200 Subject: [PATCH] Const correctness. --- src/libcalamares/Job.h | 2 +- src/modules/partition/CreatePartitionJob.cpp | 2 +- src/modules/partition/CreatePartitionJob.h | 2 +- src/modules/partition/DeletePartitionJob.cpp | 2 +- src/modules/partition/DeletePartitionJob.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libcalamares/Job.h b/src/libcalamares/Job.h index 7ecc13ee3..af9982e71 100644 --- a/src/libcalamares/Job.h +++ b/src/libcalamares/Job.h @@ -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& ); diff --git a/src/modules/partition/CreatePartitionJob.cpp b/src/modules/partition/CreatePartitionJob.cpp index 4360da605..672dcd3f2 100644 --- a/src/modules/partition/CreatePartitionJob.cpp +++ b/src/modules/partition/CreatePartitionJob.cpp @@ -42,7 +42,7 @@ CreatePartitionJob::CreatePartitionJob( Device* device, Partition* partition ) } QString -CreatePartitionJob::prettyName() +CreatePartitionJob::prettyName() const { return tr( "Create partition" ); // FIXME } diff --git a/src/modules/partition/CreatePartitionJob.h b/src/modules/partition/CreatePartitionJob.h index 8e588f0fc..705724af6 100644 --- a/src/modules/partition/CreatePartitionJob.h +++ b/src/modules/partition/CreatePartitionJob.h @@ -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(); diff --git a/src/modules/partition/DeletePartitionJob.cpp b/src/modules/partition/DeletePartitionJob.cpp index 2ac859c70..157b17c2f 100644 --- a/src/modules/partition/DeletePartitionJob.cpp +++ b/src/modules/partition/DeletePartitionJob.cpp @@ -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() ); } diff --git a/src/modules/partition/DeletePartitionJob.h b/src/modules/partition/DeletePartitionJob.h index ea6b7744f..3225c461c 100644 --- a/src/modules/partition/DeletePartitionJob.h +++ b/src/modules/partition/DeletePartitionJob.h @@ -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();