Gui: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-20 18:12:43 +02:00
parent 3e35b5f606
commit c016f1c1fb
188 changed files with 408 additions and 1124 deletions

View File

@@ -95,10 +95,7 @@ ReportView::ReportView( QWidget* parent )
/**
* Destroys the object and frees any allocated resources
*/
ReportView::~ReportView()
{
// no need to delete child widgets, Qt does it all for us
}
ReportView::~ReportView() = default;
void ReportView::changeEvent(QEvent *e)
{
@@ -134,9 +131,7 @@ ReportHighlighter::ReportHighlighter(QTextEdit* edit)
errCol = Qt::red;
}
ReportHighlighter::~ReportHighlighter()
{
}
ReportHighlighter::~ReportHighlighter() = default;
void ReportHighlighter::highlightBlock (const QString & text)
{
@@ -288,8 +283,7 @@ public:
CustomReportEvent(ReportHighlighter::Paragraph p, const QString& s)
: QEvent(QEvent::Type(QEvent::User))
{ par = p; msg = s;}
~CustomReportEvent() override
{ }
~CustomReportEvent() override = default;
const QString& message() const
{ return msg; }
ReportHighlighter::Paragraph messageType() const