Commit 61e309be authored by Ben Boeckel's avatar Ben Boeckel
Browse files

clang-tidy: fix `modernize-use-equals-override` lints

parent 79e2791b
......@@ -20,7 +20,7 @@ class ModelViewer : public QWidget
Q_OBJECT
public:
ModelViewer(QWidget* parent = nullptr);
virtual ~ModelViewer();
~ModelViewer() override;
protected:
class Internals;
......
......@@ -35,7 +35,7 @@ public:
protected:
AbstractDataModel(QObject* parent_ = nullptr);
virtual ~AbstractDataModel();
~AbstractDataModel() override;
/**
* @{
......
......@@ -35,7 +35,7 @@ public:
using AttDefElement = DataModelElement<smtk::attribute::DefinitionPtr>;
AttDefDataModel(QObject* parent = nullptr);
~AttDefDataModel();
~AttDefDataModel() override;
/**
* Populates the attribute definition tree.
......
......@@ -30,7 +30,7 @@ class AttDefDialog : public InputDialog
public:
AttDefDialog(QWidget* parent = nullptr);
~AttDefDialog();
~AttDefDialog() override;
void setBaseAttDef(smtk::attribute::DefinitionPtr def);
......
......@@ -34,7 +34,7 @@ class AttDefInformation : public QWidget
public:
AttDefInformation(QWidget* parent = nullptr);
~AttDefInformation();
~AttDefInformation() override;
public slots:
/**
......
......@@ -27,7 +27,7 @@ public:
{
}
~AttDefTreeView() = default;
~AttDefTreeView() override = default;
signals:
void showDialog(const QModelIndex&);
......
......@@ -38,7 +38,7 @@ class AttributeBrowser : public QDockWidget
public:
AttributeBrowser(QWidget* parent = nullptr);
~AttributeBrowser();
~AttributeBrowser() override;
/**
* Populate the UI with attribute definitions.
......
......@@ -26,7 +26,7 @@ class DataModelElement : public QTreeWidgetItem
{
public:
DataModelElement(QTreeWidgetItem* parent = nullptr);
~DataModelElement() = default;
~DataModelElement() override = default;
void setReferencedData(const T& data);
......
......@@ -23,7 +23,7 @@ class HandlerGroup : public HandlerItemDef
{
public:
HandlerGroup();
virtual ~HandlerGroup();
~HandlerGroup() override;
private:
HandlerGroup(const HandlerGroup&) = delete;
......
......@@ -31,7 +31,7 @@ class HandlerValue : public HandlerItemDef
//Q_OBJECT
public:
HandlerValue();
~HandlerValue();
~HandlerValue() override;
protected:
smtk::attribute::ItemDefinitionPtr createItemDef_impl(const std::string& name) override = 0;
......@@ -58,7 +58,7 @@ class HandlerString : public HandlerValue
{
public:
HandlerString();
~HandlerString();
~HandlerString() override;
private:
HandlerString(const HandlerString&) = delete;
......@@ -79,7 +79,7 @@ class HandlerDouble : public HandlerValue
{
public:
HandlerDouble() = default;
virtual ~HandlerDouble() = default;
~HandlerDouble() override = default;
private:
HandlerDouble(const HandlerDouble&) = delete;
......@@ -98,7 +98,7 @@ class HandlerInt : public HandlerValue
{
public:
HandlerInt() = default;
~HandlerInt() = default;
~HandlerInt() override = default;
private:
HandlerInt(const HandlerInt&) = delete;
......
......@@ -18,7 +18,7 @@ class HandlerVoid : public HandlerItemDef
{
public:
HandlerVoid() = default;
~HandlerVoid() = default;
~HandlerVoid() override = default;
private:
HandlerVoid(const HandlerVoid&) = delete;
......@@ -44,7 +44,7 @@ class HandlerFile : public HandlerItemDef
{
public:
HandlerFile() = default;
~HandlerFile() = default;
~HandlerFile() override = default;
private:
HandlerFile(const HandlerFile&) = delete;
......@@ -64,7 +64,7 @@ class HandlerDirectory : public HandlerItemDef
{
public:
HandlerDirectory() = default;
~HandlerDirectory() = default;
~HandlerDirectory() override = default;
private:
HandlerDirectory(const HandlerDirectory&) = delete;
......@@ -83,7 +83,7 @@ class HandlerComponent : public HandlerItemDef
{
public:
HandlerComponent() = default;
~HandlerComponent() = default;
~HandlerComponent() override = default;
private:
HandlerComponent(const HandlerComponent&) = delete;
......@@ -102,7 +102,7 @@ class HandlerResource : public HandlerItemDef
{
public:
HandlerResource() = default;
~HandlerResource() = default;
~HandlerResource() override = default;
private:
HandlerResource(const HandlerResource&) = delete;
......@@ -121,7 +121,7 @@ class HandlerDateTime : public HandlerItemDef
{
public:
HandlerDateTime() = default;
~HandlerDateTime() = default;
~HandlerDateTime() override = default;
private:
HandlerDateTime(const HandlerDateTime&) = delete;
......
......@@ -32,7 +32,7 @@ class InputDialog : public QDialog
public:
InputDialog(QWidget* parent = nullptr);
~InputDialog();
~InputDialog() override;
QWidget* centralWidget();
......
......@@ -38,7 +38,7 @@ public:
using ItemDefElement = DataModelElement<smtk::attribute::ItemDefinitionPtr>;
ItemDefDataModel(QObject* parent = nullptr);
~ItemDefDataModel();
~ItemDefDataModel() override;
/**
* Appends a branch of ItemDefinition instances contained in a Definition
......
......@@ -38,7 +38,7 @@ class ItemDefDialog : public InputDialog
public:
ItemDefDialog(QWidget* parent = nullptr);
~ItemDefDialog();
~ItemDefDialog() override;
/**
* Set the ItemDefinition to Show or Edit.
......
......@@ -48,7 +48,7 @@ class PreviewPanel : public QDockWidget
public:
PreviewPanel(QWidget* parent, smtk::attribute::ResourcePtr resource);
~PreviewPanel();
~PreviewPanel() override;
public slots:
/**
......
......@@ -37,7 +37,7 @@ class TemplateEditorMain : public QMainWindow
public:
TemplateEditorMain();
~TemplateEditorMain();
~TemplateEditorMain() override;
/**
* Load a template file to edit. This method is also used for commmand
......
......@@ -55,7 +55,7 @@ public:
typedef smtk::shared_ptr<Session> Ptr;
typedef smtk::model::SessionInfoBits SessionInfoBits;
static SessionPtr create();
virtual ~Session();
~Session() override;
virtual SessionInfoBits allSupportedInformation() const;
// These are specific to each session but required in some form:
......
......@@ -91,7 +91,7 @@ public:
return smtk::attribute::AttributePtr(new Attribute(myName, myDefinition, myId));
}
virtual ~Attribute();
~Attribute() override;
AttributePtr shared_from_this()
{
......
......@@ -151,7 +151,7 @@ public:
protected:
GroupItemDefinition(const std::string& myname);
virtual void applyCategories(
void applyCategories(
const smtk::attribute::Categories& inheritedFromParent,
smtk::attribute::Categories& inheritedToParent) override;
void applyAdvanceLevels(
......
......@@ -32,7 +32,7 @@ public:
protected:
Result operateInternal() override;
virtual const char* xmlDescription() const override;
const char* xmlDescription() const override;
};
} // namespace attribute
} // namespace smtk
......
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