Commit 9dfa9bbb authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

translations: throw away trivial dtors

they don't serve a purpose. the virtual model base has a virtual dtor so
by extension we also have a virtual implicit dtor (presumably)
parent b38b1251
......@@ -161,10 +161,6 @@ TranslationsModel::TranslationsModel(QObject *parent)
}
}
TranslationsModel::~TranslationsModel()
{
}
QHash<int, QByteArray> TranslationsModel::roleNames() const
{
QHash<int, QByteArray> roles = QAbstractItemModel::roleNames();
......@@ -236,10 +232,6 @@ SelectedTranslationsModel::SelectedTranslationsModel(QObject *parent)
{
}
SelectedTranslationsModel::~SelectedTranslationsModel()
{
}
QVariant SelectedTranslationsModel::data(const QModelIndex &index, int role) const
{
if (!index.isValid() || index.row() < 0 || index.row() >= m_selectedLanguages.count()) {
......@@ -421,10 +413,6 @@ AvailableTranslationsModel::AvailableTranslationsModel(QObject *parent)
{
}
AvailableTranslationsModel::~AvailableTranslationsModel()
{
}
QVariant AvailableTranslationsModel::data(const QModelIndex &index, int role) const
{
if (!index.isValid() || index.row() < 0 || index.row() >= m_availableLanguages.count()) {
......
......@@ -42,7 +42,6 @@ public:
Q_ENUM(AdditionalRoles)
explicit TranslationsModel(QObject *parent = nullptr);
~TranslationsModel() override;
QHash<int, QByteArray> roleNames() const override;
......@@ -66,7 +65,6 @@ class SelectedTranslationsModel : public TranslationsModel
public:
explicit SelectedTranslationsModel(QObject *parent = nullptr);
~SelectedTranslationsModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......@@ -100,7 +98,6 @@ class AvailableTranslationsModel : public TranslationsModel
public:
explicit AvailableTranslationsModel(QObject *parent = nullptr);
~AvailableTranslationsModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
Supports Markdown
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