Commit a4e17aed authored by Laurent Montel's avatar Laurent Montel 😁

Use default destructor

parent f98c4711
......@@ -130,8 +130,7 @@ AddArchiveMailDialog::AddArchiveMailDialog(ArchiveMailInfo *info, QWidget *paren
}
AddArchiveMailDialog::~AddArchiveMailDialog()
{
}
= default;
void AddArchiveMailDialog::load(ArchiveMailInfo *info)
{
......
......@@ -63,8 +63,7 @@ ArchiveMailAgent::ArchiveMailAgent(const QString &id)
}
ArchiveMailAgent::~ArchiveMailAgent()
{
}
= default;
void ArchiveMailAgent::setEnableAgent(bool enabled)
{
......
......@@ -10,8 +10,7 @@
#include <QDir>
ArchiveMailInfo::ArchiveMailInfo()
{
}
= default;
ArchiveMailInfo::ArchiveMailInfo(const KConfigGroup &config)
{
......@@ -32,8 +31,7 @@ ArchiveMailInfo::ArchiveMailInfo(const ArchiveMailInfo &info)
}
ArchiveMailInfo::~ArchiveMailInfo()
{
}
= default;
ArchiveMailInfo &ArchiveMailInfo::operator=(const ArchiveMailInfo &old)
{
......
......@@ -101,8 +101,7 @@ ArchiveMailWidget::ArchiveMailWidget(const KSharedConfigPtr &config, QWidget *pa
}
ArchiveMailWidget::~ArchiveMailWidget()
{
}
= default;
void ArchiveMailWidget::slotCustomContextMenuRequested(const QPoint &)
{
......
......@@ -19,8 +19,7 @@ ArchiveMailInfoTest::ArchiveMailInfoTest(QObject *parent)
}
ArchiveMailInfoTest::~ArchiveMailInfoTest()
{
}
= default;
void ArchiveMailInfoTest::shouldHaveDefaultValue()
{
......
......@@ -18,8 +18,7 @@ ArchiveMailWidgetTest::ArchiveMailWidgetTest(QObject *parent)
}
ArchiveMailWidgetTest::~ArchiveMailWidgetTest()
{
}
= default;
void ArchiveMailWidgetTest::shouldHaveDefaultValue()
{
......
......@@ -14,8 +14,7 @@ FormatComboBoxTest::FormatComboBoxTest(QObject *parent)
}
FormatComboBoxTest::~FormatComboBoxTest()
{
}
= default;
void FormatComboBoxTest::shouldHaveDefaultValue()
{
......
......@@ -14,8 +14,7 @@ UnitComboBoxTest::UnitComboBoxTest(QObject *parent)
}
UnitComboBoxTest::~UnitComboBoxTest()
{
}
= default;
void UnitComboBoxTest::shouldHaveDefaultValue()
{
......
......@@ -44,8 +44,7 @@ public:
}
~ScheduledArchiveTask()
{
}
= default;
MailCommon::ScheduledJob *run() override;
......
......@@ -19,8 +19,7 @@ FormatComboBox::FormatComboBox(QWidget *parent)
}
FormatComboBox::~FormatComboBox()
{
}
= default;
void FormatComboBox::setFormat(MailCommon::BackupJob::ArchiveType type)
{
......
......@@ -17,8 +17,7 @@ UnitComboBox::UnitComboBox(QWidget *parent)
}
UnitComboBox::~UnitComboBox()
{
}
= default;
void UnitComboBox::setUnit(ArchiveMailInfo::ArchiveUnit unit)
{
......
......@@ -16,8 +16,7 @@ FollowUpReminderConfigTest::FollowUpReminderConfigTest(QObject *parent)
}
FollowUpReminderConfigTest::~FollowUpReminderConfigTest()
{
}
= default;
void FollowUpReminderConfigTest::init()
{
......
......@@ -19,8 +19,7 @@ FollowupReminderNoAnswerDialogTest::FollowupReminderNoAnswerDialogTest(QObject *
}
FollowupReminderNoAnswerDialogTest::~FollowupReminderNoAnswerDialogTest()
{
}
= default;
void FollowupReminderNoAnswerDialogTest::initTestCase()
{
......
......@@ -59,8 +59,7 @@ FollowUpReminderAgent::FollowUpReminderAgent(const QString &id)
}
FollowUpReminderAgent::~FollowUpReminderAgent()
{
}
= default;
void FollowUpReminderAgent::setEnableAgent(bool enabled)
{
......
......@@ -9,8 +9,7 @@
using namespace FollowUpReminder;
FollowUpReminderInfo::FollowUpReminderInfo()
{
}
= default;
FollowUpReminderInfo::FollowUpReminderInfo(const KConfigGroup &config)
{
......
......@@ -38,8 +38,7 @@ FollowUpReminderInfoConfigWidget::FollowUpReminderInfoConfigWidget(const KShared
}
FollowUpReminderInfoConfigWidget::~FollowUpReminderInfoConfigWidget()
{
}
= default;
void FollowUpReminderInfoConfigWidget::load()
{
......
......@@ -79,8 +79,7 @@ FollowUpReminderInfoWidget::FollowUpReminderInfoWidget(QWidget *parent)
}
FollowUpReminderInfoWidget::~FollowUpReminderInfoWidget()
{
}
= default;
void FollowUpReminderInfoWidget::setInfo(const QList<FollowUpReminder::FollowUpReminderInfo *> &infoList)
{
......
......@@ -19,8 +19,7 @@ FollowUpReminderFinishTaskJob::FollowUpReminderFinishTaskJob(Akonadi::Item::Id i
}
FollowUpReminderFinishTaskJob::~FollowUpReminderFinishTaskJob()
{
}
= default;
void FollowUpReminderFinishTaskJob::start()
{
......
......@@ -20,8 +20,7 @@ FollowUpReminderJob::FollowUpReminderJob(QObject *parent)
}
FollowUpReminderJob::~FollowUpReminderJob()
{
}
= default;
void FollowUpReminderJob::start()
{
......
......@@ -18,8 +18,7 @@ FollowUpReminderShowMessageJob::FollowUpReminderShowMessageJob(Akonadi::Item::Id
}
FollowUpReminderShowMessageJob::~FollowUpReminderShowMessageJob()
{
}
= default;
void FollowUpReminderShowMessageJob::start()
{
......
......@@ -12,8 +12,7 @@ MailfilterPurposeMenuWidget::MailfilterPurposeMenuWidget(QWidget *parentWidget,
}
MailfilterPurposeMenuWidget::~MailfilterPurposeMenuWidget()
{
}
= default;
QByteArray MailfilterPurposeMenuWidget::text()
{
......
......@@ -18,8 +18,7 @@ SendLaterConfigureDialogTest::SendLaterConfigureDialogTest(QObject *parent)
}
SendLaterConfigureDialogTest::~SendLaterConfigureDialogTest()
{
}
= default;
void SendLaterConfigureDialogTest::initTestCase()
{
......
......@@ -70,8 +70,7 @@ SendLaterAgent::SendLaterAgent(const QString &id)
}
SendLaterAgent::~SendLaterAgent()
{
}
= default;
void SendLaterAgent::slotStartAgent()
{
......
......@@ -15,8 +15,7 @@ SendLaterRemoveMessageJob::SendLaterRemoveMessageJob(const QVector<Akonadi::Item
}
SendLaterRemoveMessageJob::~SendLaterRemoveMessageJob()
{
}
= default;
void SendLaterRemoveMessageJob::start()
{
......
......@@ -184,8 +184,7 @@ UnifiedMailboxManager::UnifiedMailboxManager(const KSharedConfigPtr &config, QOb
}
UnifiedMailboxManager::~UnifiedMailboxManager()
{
}
= default;
Akonadi::ChangeRecorder &UnifiedMailboxManager::changeRecorder()
{
......
......@@ -32,8 +32,7 @@ RefreshSettingsAssistant::RefreshSettingsAssistant(QWidget *parent)
}
RefreshSettingsAssistant::~RefreshSettingsAssistant()
{
}
= default;
void RefreshSettingsAssistant::initializePages()
{
......
......@@ -24,8 +24,7 @@ RefreshSettingsCleanupPage::RefreshSettingsCleanupPage(QWidget *parent)
}
RefreshSettingsCleanupPage::~RefreshSettingsCleanupPage()
{
}
= default;
void RefreshSettingsCleanupPage::cleanSettings()
{
......
......@@ -25,5 +25,4 @@ RefreshSettingsFirstPage::RefreshSettingsFirstPage(QWidget *parent)
}
RefreshSettingsFirstPage::~RefreshSettingsFirstPage()
{
}
= default;
......@@ -23,8 +23,7 @@ RefreshSettringsFinishPage::RefreshSettringsFinishPage(QWidget *parent)
}
RefreshSettringsFinishPage::~RefreshSettringsFinishPage()
{
}
= default;
void RefreshSettringsFinishPage::slotCleanDoneInfo(const QString &str)
{
......
......@@ -62,8 +62,7 @@ Attachment::Attachment(QTreeWidget *parent, KTNEFAttach *attach)
}
Attachment::~Attachment()
{
}
= default;
//----------------------------------------------------------------------------//
......@@ -82,8 +81,7 @@ KTNEFView::KTNEFView(QWidget *parent)
}
KTNEFView::~KTNEFView()
{
}
= default;
void KTNEFView::setAttachments(const QList<KTNEFAttach *> &list)
{
......
......@@ -45,8 +45,7 @@ class WinObjHandle
{
public:
virtual ~WinObjHandle()
{
}
= default;
virtual void apply(QPainter &p) = 0;
};
......@@ -57,8 +56,7 @@ public:
void apply(QPainter &p) override;
QBrush brush;
virtual ~WinObjBrushHandle()
{
}
= default;
};
class WinObjPenHandle : public WinObjHandle
......@@ -67,8 +65,7 @@ public:
void apply(QPainter &p) override;
QPen pen;
virtual ~WinObjPenHandle()
{
}
= default;
};
class WinObjPatternBrushHandle : public WinObjHandle
......@@ -78,8 +75,7 @@ public:
QBrush brush;
QImage image;
virtual ~WinObjPatternBrushHandle()
{
}
= default;
};
class WinObjFontHandle : public WinObjHandle
......@@ -89,8 +85,7 @@ public:
QFont font;
int rotation;
virtual ~WinObjFontHandle()
{
}
= default;
};
void WinObjBrushHandle::apply(QPainter &p)
......
......@@ -360,6 +360,5 @@ AboutData::AboutData()
}
AboutData::~AboutData()
{
}
= default;
} // namespace KMail
......@@ -21,8 +21,7 @@ TaskAttribute::TaskAttribute(Akonadi::Item::Id id)
}
TaskAttribute::~TaskAttribute()
{
}
= default;
TaskAttribute *TaskAttribute::clone() const
{
......
......@@ -13,8 +13,7 @@ CreateFollowupReminderOnExistingMessageJobTest::CreateFollowupReminderOnExisting
}
CreateFollowupReminderOnExistingMessageJobTest::~CreateFollowupReminderOnExistingMessageJobTest()
{
}
= default;
void CreateFollowupReminderOnExistingMessageJobTest::shouldHaveDefaultValue()
{
......
......@@ -13,8 +13,7 @@ CryptoStateIndicatorWidgetTest::CryptoStateIndicatorWidgetTest(QObject *parent)
}
CryptoStateIndicatorWidgetTest::~CryptoStateIndicatorWidgetTest()
{
}
= default;
void CryptoStateIndicatorWidgetTest::shouldHaveDefaultValue()
{
......
......@@ -14,8 +14,7 @@
#include <QTest>
identityaddvcarddialogtest::identityaddvcarddialogtest()
{
}
= default;
void identityaddvcarddialogtest::shouldHaveDefaultValue()
{
......
......@@ -14,8 +14,7 @@ KActionMenuTransportTest::KActionMenuTransportTest(QObject *parent)
}
KActionMenuTransportTest::~KActionMenuTransportTest()
{
}
= default;
void KActionMenuTransportTest::shouldHaveDefaultValue()
{
......
......@@ -41,8 +41,7 @@ CollectionMailingListPage::CollectionMailingListPage(QWidget *parent)
}
CollectionMailingListPage::~CollectionMailingListPage()
{
}
= default;
void CollectionMailingListPage::slotConfigChanged()
{
......
......@@ -20,8 +20,7 @@ class CollectionQuotaWidget : public QWidget
public:
explicit CollectionQuotaWidget(QWidget *parent);
~CollectionQuotaWidget()
{
}
= default;
void setQuotaInfo(qint64 currentValue, qint64 maxValue);
......
......@@ -29,8 +29,7 @@ CollectionShortcutPage::CollectionShortcutPage(QWidget *parent)
}
CollectionShortcutPage::~CollectionShortcutPage()
{
}
= default;
void CollectionShortcutPage::init(const Akonadi::Collection &col)
{
......
......@@ -27,8 +27,7 @@ CollectionTemplatesPage::CollectionTemplatesPage(QWidget *parent)
}
CollectionTemplatesPage::~CollectionTemplatesPage()
{
}
= default;
bool CollectionTemplatesPage::canHandle(const Collection &collection) const
{
......
......@@ -35,8 +35,7 @@ CollectionViewPage::CollectionViewPage(QWidget *parent)
}
CollectionViewPage::~CollectionViewPage()
{
}
= default;
void CollectionViewPage::init(const Akonadi::Collection &col)
{
......
......@@ -24,8 +24,7 @@ public:
}
~ConfigModule() override
{
}
= default;
void defaults() override
{
......
......@@ -77,8 +77,7 @@ AccountsPage::AccountsPage(QWidget *parent)
}
AccountsPageSendingTab::~AccountsPageSendingTab()
{
}
= default;
QString AccountsPage::SendingTab::helpAnchor() const
{
......@@ -412,8 +411,7 @@ LdapCompetionTab::LdapCompetionTab(QWidget *parent)
}
LdapCompetionTab::~LdapCompetionTab()
{
}
= default;
QString LdapCompetionTab::helpAnchor() const
{
......
......@@ -929,8 +929,7 @@ TagListWidgetItem::TagListWidgetItem(const QIcon &icon, const QString &text, QLi
}
TagListWidgetItem::~TagListWidgetItem()
{
}
= default;
void TagListWidgetItem::setKMailTag(const MailCommon::Tag::Ptr &tag)
{
......@@ -1054,8 +1053,7 @@ AppearancePageMessageTagTab::AppearancePageMessageTagTab(QWidget *parent)
}
AppearancePageMessageTagTab::~AppearancePageMessageTagTab()
{
}
= default;
void AppearancePage::MessageTagTab::slotEmitChangeCheck()
{
......
......@@ -55,8 +55,7 @@ void ConfigureDialog::hideEvent(QHideEvent *ev)
}
ConfigureDialog::~ConfigureDialog()
{
}
= default;