Commit 98998bd7 authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

[C++11] Use 'default' (modernize-use-equals-default) and 'delete'...

[C++11] Use 'default' (modernize-use-equals-default) and 'delete' (modernize-use-equals-delete) keywords
parent 7ebb91a6
......@@ -38,10 +38,6 @@ ActionBar::ActionBar(WorksheetEntry* parent)
this, SLOT(updatePosition()));
}
ActionBar::~ActionBar()
{
}
WorksheetToolButton* ActionBar::addButton(const QIcon& icon, const QString& toolTip,
QObject* receiver, const char* method )
{
......
......@@ -34,7 +34,7 @@ class ActionBar : public QGraphicsObject
Q_OBJECT
public:
ActionBar(WorksheetEntry* parent);
~ActionBar() override;
~ActionBar() override = default;
WorksheetToolButton* addButton(const QIcon& icon, const QString& toolTip,
QObject* receiver = nullptr,
......
......@@ -86,10 +86,6 @@ AnimationHelperItem::AnimationHelperItem(const AnimationHelperItem& other)
m_animation=other.m_animation;
}
AnimationHelperItem::~AnimationHelperItem()
{
}
void AnimationHelperItem::setPosition(const QTextCursor& cursor)
{
m_animation->setPosition(cursor);
......
......@@ -57,7 +57,7 @@ class AnimationHelperItem
public:
AnimationHelperItem( );
AnimationHelperItem( const AnimationHelperItem& other);
~AnimationHelperItem();
~AnimationHelperItem() = default;
QTextCursor position() const;
void setPosition(const QTextCursor& cursor);
......
......@@ -34,10 +34,6 @@ AnimationResultItem::AnimationResultItem(QGraphicsObject* parent)
SLOT(removeResult()));
}
AnimationResultItem::~AnimationResultItem()
{
}
double AnimationResultItem::setGeometry(double x, double y, double w)
{
Q_UNUSED(w);
......
......@@ -33,7 +33,7 @@ class AnimationResultItem : public WorksheetImageItem, public ResultItem
public:
AnimationResultItem(QGraphicsObject* parent);
~AnimationResultItem() override;
~AnimationResultItem() override = default;
using WorksheetImageItem::setGeometry;
double setGeometry(double x, double y, double w) override;
......
......@@ -39,11 +39,6 @@ AdvancedPlotAssistant::AdvancedPlotAssistant(QObject* parent, QList<QVariant> ar
Q_UNUSED(args)
}
AdvancedPlotAssistant::~AdvancedPlotAssistant()
{
}
void AdvancedPlotAssistant::initActions()
{
setXMLFile(QLatin1String("cantor_advancedplot_assistant.rc"));
......
......@@ -32,7 +32,7 @@ class AdvancedPlotAssistant : public Cantor::Assistant
Q_OBJECT
public:
AdvancedPlotAssistant( QObject* parent, QList<QVariant> args );
~AdvancedPlotAssistant() override;
~AdvancedPlotAssistant() override = default;
void initActions() override;
......
......@@ -38,11 +38,6 @@ DifferentiateAssistant::DifferentiateAssistant(QObject* parent, QList<QVariant>
Q_UNUSED(args)
}
DifferentiateAssistant::~DifferentiateAssistant()
{
}
void DifferentiateAssistant::initActions()
{
setXMLFile(QLatin1String("cantor_differentiate_assistant.rc"));
......
......@@ -27,7 +27,7 @@ class DifferentiateAssistant : public Cantor::Assistant
{
public:
DifferentiateAssistant( QObject* parent, QList<QVariant> args );
~DifferentiateAssistant() override;
~DifferentiateAssistant() override = default;
void initActions() override;
......
......@@ -37,11 +37,6 @@ ImportPackageAssistant::ImportPackageAssistant(QObject* parent, QList<QVariant>
Q_UNUSED(args)
}
ImportPackageAssistant::~ImportPackageAssistant()
{
}
void ImportPackageAssistant::initActions()
{
setXMLFile(QLatin1String("cantor_import_package_assistant.rc"));
......
......@@ -27,7 +27,7 @@ class ImportPackageAssistant : public Cantor::Assistant
{
public:
ImportPackageAssistant( QObject* parent, QList<QVariant> args );
~ImportPackageAssistant() override;
~ImportPackageAssistant() override = default;
void initActions() override;
......
......@@ -38,11 +38,6 @@ IntegrateAssistant::IntegrateAssistant(QObject* parent, QList<QVariant> args) :
Q_UNUSED(args)
}
IntegrateAssistant::~IntegrateAssistant()
{
}
void IntegrateAssistant::initActions()
{
setXMLFile(QLatin1String("cantor_integrate_assistant.rc"));
......
......@@ -27,7 +27,7 @@ class IntegrateAssistant : public Cantor::Assistant
{
public:
IntegrateAssistant( QObject* parent, QList<QVariant> args );
~IntegrateAssistant() override;
~IntegrateAssistant() override = default;
void initActions() override;
......
......@@ -35,11 +35,6 @@ CreateMatrixAssistant::CreateMatrixAssistant(QObject* parent, QList<QVariant> ar
Q_UNUSED(args)
}
CreateMatrixAssistant::~CreateMatrixAssistant()
{
}
void CreateMatrixAssistant::initActions()
{
setXMLFile(QLatin1String("cantor_create_matrix_assistant.rc"));
......
......@@ -27,7 +27,7 @@ class CreateMatrixAssistant : public Cantor::Assistant
{
public:
CreateMatrixAssistant( QObject* parent, QList<QVariant> args );
~CreateMatrixAssistant() override;
~CreateMatrixAssistant() override = default;
void initActions() override;
......
......@@ -37,11 +37,6 @@ EigenValuesAssistant::EigenValuesAssistant(QObject* parent, QList<QVariant> args
Q_UNUSED(args)
}
EigenValuesAssistant::~EigenValuesAssistant()
{
}
void EigenValuesAssistant::initActions()
{
setXMLFile(QLatin1String("cantor_eigenvalues_assistant.rc"));
......
......@@ -27,7 +27,7 @@ class EigenValuesAssistant : public Cantor::Assistant
{
public:
EigenValuesAssistant( QObject* parent, QList<QVariant> args );
~EigenValuesAssistant() override;
~EigenValuesAssistant() override = default;
void initActions() override;
......
......@@ -37,11 +37,6 @@ EigenVectorsAssistant::EigenVectorsAssistant(QObject* parent, QList<QVariant> ar
Q_UNUSED(args)
}
EigenVectorsAssistant::~EigenVectorsAssistant()
{
}
void EigenVectorsAssistant::initActions()
{
setXMLFile(QLatin1String("cantor_eigenvectors_assistant.rc"));
......
......@@ -27,7 +27,7 @@ class EigenVectorsAssistant : public Cantor::Assistant
{
public:
EigenVectorsAssistant( QObject* parent, QList<QVariant> args );
~EigenVectorsAssistant() override;
~EigenVectorsAssistant() override = default;
void initActions() override;
......
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