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

@@ -70,9 +70,7 @@ TextEdit::TextEdit(QWidget* parent)
}
/** Destroys the object and frees any allocated resources */
TextEdit::~TextEdit()
{
}
TextEdit::~TextEdit() = default;
/**
* Set the approproriate item of the completion box or hide it, if needed.
@@ -511,9 +509,7 @@ LineMarker::LineMarker(TextEditor* editor)
{
}
LineMarker::~LineMarker()
{
}
LineMarker::~LineMarker() = default;
QSize LineMarker::sizeHint() const
{
@@ -540,9 +536,7 @@ CompletionList::CompletionList(QPlainTextEdit* parent)
this, &CompletionList::completionItem);
}
CompletionList::~CompletionList()
{
}
CompletionList::~CompletionList() = default;
void CompletionList::findCurrentWord(const QString& wordPrefix)
{