From 267a0f5e60fb62bc86352ca879c2fedd812bebef Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Mon, 14 Oct 2024 11:06:36 +0300 Subject: [PATCH] Add override keywords to please the compiler --- src/admc/attribute_edits/computer_sam_name_edit.h | 2 +- src/admc/attribute_edits/protect_deletion_edit.h | 2 +- src/admc/attribute_edits/sam_name_edit.h | 2 +- src/admc/console_impls/domain_info_impl.h | 4 ++-- .../policy_ou_results_widget/drag_drop_links_model.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/admc/attribute_edits/computer_sam_name_edit.h b/src/admc/attribute_edits/computer_sam_name_edit.h index 86e37e73..032b2fcd 100644 --- a/src/admc/attribute_edits/computer_sam_name_edit.h +++ b/src/admc/attribute_edits/computer_sam_name_edit.h @@ -34,7 +34,7 @@ public: bool verify(AdInterface &ad, const QString &dn) const override; bool apply(AdInterface &ad, const QString &dn) const override; - void set_enabled(const bool enabled); + void set_enabled(const bool enabled) override; private: QLineEdit *edit; diff --git a/src/admc/attribute_edits/protect_deletion_edit.h b/src/admc/attribute_edits/protect_deletion_edit.h index 00d35099..c35e00ab 100644 --- a/src/admc/attribute_edits/protect_deletion_edit.h +++ b/src/admc/attribute_edits/protect_deletion_edit.h @@ -38,7 +38,7 @@ public: void load(AdInterface &ad, const AdObject &object) override; bool apply(AdInterface &ad, const QString &dn) const override; - void set_enabled(const bool enabled); + void set_enabled(const bool enabled) override; private: QCheckBox *check; diff --git a/src/admc/attribute_edits/sam_name_edit.h b/src/admc/attribute_edits/sam_name_edit.h index b5867ce3..e0c2955f 100644 --- a/src/admc/attribute_edits/sam_name_edit.h +++ b/src/admc/attribute_edits/sam_name_edit.h @@ -34,7 +34,7 @@ public: bool verify(AdInterface &ad, const QString &dn) const override; bool apply(AdInterface &ad, const QString &dn) const override; - void set_enabled(const bool enabled); + void set_enabled(const bool enabled) override; private: QLineEdit *edit; diff --git a/src/admc/console_impls/domain_info_impl.h b/src/admc/console_impls/domain_info_impl.h index bd2a6b56..923a552c 100644 --- a/src/admc/console_impls/domain_info_impl.h +++ b/src/admc/console_impls/domain_info_impl.h @@ -39,10 +39,10 @@ class DomainInfoImpl : public ConsoleImpl { public: explicit DomainInfoImpl(ConsoleWidget *console_arg); - void selected_as_scope(const QModelIndex &index); + void selected_as_scope(const QModelIndex &index) override; void refresh(const QList &index_list) override; - virtual QList get_all_custom_actions() const; + virtual QList get_all_custom_actions() const override; QSet get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet get_standard_actions(const QModelIndex &index, const bool single_selection) const override; diff --git a/src/admc/results_widgets/policy_ou_results_widget/drag_drop_links_model.h b/src/admc/results_widgets/policy_ou_results_widget/drag_drop_links_model.h index e5e1e683..925ee610 100644 --- a/src/admc/results_widgets/policy_ou_results_widget/drag_drop_links_model.h +++ b/src/admc/results_widgets/policy_ou_results_widget/drag_drop_links_model.h @@ -46,7 +46,7 @@ public: virtual QMimeData *mimeData(const QModelIndexList &indexes) const override; virtual Qt::DropActions supportedDropActions() const override; virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override; - virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const; + virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override; void arrange_orders_from_gplink(const Gplink &gplink); void update_sort_column(LinkedPoliciesColumn column);