Commit 73f7470b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override keyword

parent 2f813c93
......@@ -36,7 +36,7 @@ public:
enum Category { Unspecified = 0, Language = 1 };
explicit Learner(QObject *parent = nullptr);
~Learner();
~Learner() override;
QString name() const;
void setName(const QString &name);
......
......@@ -30,7 +30,7 @@ public:
explicit LearningGoal(QObject *parent = nullptr);
explicit LearningGoal(LearningGoal::Category category, const QString &identifier, QObject *parent = nullptr);
~LearningGoal();
~LearningGoal() override;
QString name() const;
void setName(const QString &name);
......
......@@ -29,7 +29,7 @@ public:
enum learningGoalRoles { TitleRole = Qt::UserRole + 1, IdRole, DataRole };
explicit LearningGoalModel(QObject *parent = nullptr);
virtual ~LearningGoalModel();
~LearningGoalModel() override;
/**
* Reimplemented from QAbstractListModel::roleNames()
*/
......
......@@ -30,7 +30,7 @@ public:
enum Progress { Skip = 0, Next = 1 };
explicit ProfileManager(QObject *parent = nullptr);
virtual ~ProfileManager();
~ProfileManager() override;
QList<Learner *> profiles() const;
int profileCount() const;
......
......@@ -20,7 +20,7 @@ class LIBSOUND_EXPORT BackendInterface : public QObject
public:
explicit BackendInterface(const QString &name, QObject *parent = nullptr);
virtual ~BackendInterface();
~BackendInterface() override;
QString name() const;
virtual CaptureBackendInterface *captureBackend() const = 0;
......
......@@ -17,7 +17,7 @@ class LIBSOUND_EXPORT CaptureBackendInterface : public QObject
public:
explicit CaptureBackendInterface(QObject *parent = nullptr);
virtual ~CaptureBackendInterface();
~CaptureBackendInterface() override;
virtual void startCapture(const QString &filePath) = 0;
virtual void stopCapture() = 0;
......
......@@ -60,7 +60,7 @@ private:
/**
* Private destructor.
*/
~CaptureDeviceController();
~CaptureDeviceController() override;
const QScopedPointer<CaptureDeviceControllerPrivate> d;
};
......
......@@ -17,7 +17,7 @@ class LIBSOUND_EXPORT OutputBackendInterface : public QObject
public:
explicit OutputBackendInterface(QObject *parent = nullptr);
virtual ~OutputBackendInterface();
~OutputBackendInterface() override;
virtual void setUri(const QString &uri) = 0;
/**
* volume as cubic value
......
......@@ -58,7 +58,7 @@ private:
/**
* Private destructor.
*/
~OutputDeviceController();
~OutputDeviceController() override;
const QScopedPointer<OutputDeviceControllerPrivate> d;
};
......
......@@ -20,7 +20,7 @@ class QtMultimediaBackend : public BackendInterface
public:
explicit QtMultimediaBackend(QObject *parent, const QList<QVariant> &);
virtual ~QtMultimediaBackend();
~QtMultimediaBackend() override;
CaptureBackendInterface *captureBackend() const override;
OutputBackendInterface *outputBackend() const override;
......
......@@ -18,7 +18,7 @@ class QtMultimediaOutputBackend : public OutputBackendInterface
public:
explicit QtMultimediaOutputBackend(QObject *parent = nullptr);
virtual ~QtMultimediaOutputBackend();
~QtMultimediaOutputBackend() override;
void setUri(const QString &uri) override;
/**
......
......@@ -29,7 +29,7 @@ class ARTIKULATECORE_EXPORT ICourse : public QObject
Q_PROPERTY(QString languageTitle READ languageTitle CONSTANT)
public:
virtual ~ICourse() = default;
~ICourse() override = default;
virtual QString id() const = 0;
virtual QString foreignId() const = 0;
virtual QString title() const = 0;
......
......@@ -24,7 +24,7 @@ class ARTIKULATECORE_EXPORT IEditableCourse : public ICourse
Q_PROPERTY(QString modified READ isModified NOTIFY modifiedChanged)
public:
virtual ~IEditableCourse() = default;
~IEditableCourse() override = default;
virtual void setId(QString id) = 0;
virtual void setForeignId(QString foreignId) = 0;
virtual void setTitle(QString title) = 0;
......
......@@ -31,7 +31,7 @@ public:
enum class EditState { Unknown, Translated, Completed };
Q_ENUM(EditState)
virtual ~IEditablePhrase() = default;
~IEditablePhrase() override = default;
virtual void setId(QString id) = 0;
virtual void setForeignId(QString id) = 0;
......
......@@ -23,7 +23,7 @@ class ARTIKULATECORE_EXPORT IEditableRepository : public IResourceRepository
{
Q_OBJECT
public:
virtual ~IEditableRepository() = default;
~IEditableRepository() override = default;
virtual QVector<std::shared_ptr<IEditableCourse>> editableCourses() const = 0;
virtual std::shared_ptr<IEditableCourse> editableCourse(std::shared_ptr<ILanguage> language, int index) const = 0;
virtual QVector<std::shared_ptr<IEditableCourse>> skeletons() const = 0;
......
......@@ -26,7 +26,7 @@ class ARTIKULATECORE_EXPORT IEditableUnit : public IUnit
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
public:
virtual ~IEditableUnit() = default;
~IEditableUnit() override = default;
virtual void setId(const QString &id) = 0;
virtual void setForeignId(const QString &id) = 0;
virtual void setCourse(std::shared_ptr<ICourse> course) = 0;
......
......@@ -25,7 +25,7 @@ class ARTIKULATECORE_EXPORT ILanguage : public QObject
Q_PROPERTY(QString i18nTitle READ i18nTitle NOTIFY i18nTitleChanged)
public:
virtual ~ILanguage() = default;
~ILanguage() override = default;
virtual QString id() const = 0;
virtual QString title() const = 0;
virtual QString i18nTitle() const = 0;
......
......@@ -30,7 +30,7 @@ public:
enum class Type { Word, Expression, Sentence, Paragraph, AllTypes };
Q_ENUM(Type)
virtual ~IPhrase() = default;
~IPhrase() override = default;
virtual QString id() const = 0;
virtual QString foreignId() const = 0;
......
......@@ -23,7 +23,7 @@ class ARTIKULATECORE_EXPORT IResourceRepository : public QObject
{
Q_OBJECT
public:
virtual ~IResourceRepository() = default;
~IResourceRepository() override = default;
/**
* \return path to working repository, if one is set
......
......@@ -29,7 +29,7 @@ public:
: QObject(parent)
{
}
virtual ~ISessionActions() = default;
~ISessionActions() override = default;
virtual TrainingAction *activeAction() const = 0;
virtual void setActivePhrase(IPhrase *phrase) = 0;
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment