Skip to content

Commit

Permalink
Use default to define a trivial constructor
Browse files Browse the repository at this point in the history
Thanks clang-tidy.
  • Loading branch information
luis-pereira committed Oct 27, 2023
1 parent 7438f49 commit 6982a2e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions src/bookmarkswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,7 @@ BookmarksWidget::BookmarksWidget(QWidget *parent)
});
}

BookmarksWidget::~BookmarksWidget()
{
}
BookmarksWidget::~BookmarksWidget() = default;

void BookmarksWidget::setup()
{
Expand Down
5 changes: 1 addition & 4 deletions src/propertiesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,7 @@ PropertiesDialog::PropertiesDialog(QWidget *parent)
resize(s);
}


PropertiesDialog::~PropertiesDialog()
{
}
PropertiesDialog::~PropertiesDialog() = default;

void PropertiesDialog::accept()
{
Expand Down
3 changes: 1 addition & 2 deletions src/tab-switcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ TabSwitcher::TabSwitcher(TabWidget *tabs)
connect(m_timer, &QTimer::timeout, this, &TabSwitcher::timer);
}

TabSwitcher::~TabSwitcher()
{}
TabSwitcher::~TabSwitcher() = default;

void TabSwitcher::showSwitcher()
{
Expand Down
4 changes: 1 addition & 3 deletions src/terminalconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ TerminalConfig::TerminalConfig(const QString &wdir, const QStringList &shell)
{
}

TerminalConfig::TerminalConfig()
{
}
TerminalConfig::TerminalConfig() = default;

TerminalConfig::TerminalConfig(const TerminalConfig &cfg)
: m_currentDirectory(cfg.m_currentDirectory),
Expand Down
4 changes: 1 addition & 3 deletions src/termwidgetholder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ TermWidgetHolder::TermWidgetHolder(TerminalConfig &config, QWidget * parent)
setLayout(lay);
}

TermWidgetHolder::~TermWidgetHolder()
{
}
TermWidgetHolder::~TermWidgetHolder() = default;

void TermWidgetHolder::setInitialFocus()
{
Expand Down

0 comments on commit 6982a2e

Please sign in to comment.