clang-tidy: use = default (#7999)

This commit is contained in:
Rosen Penev 2023-01-29 12:47:13 -08:00 committed by GitHub
parent e1fbed0e25
commit 52af8a5e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
70 changed files with 72 additions and 216 deletions

View File

@ -25,9 +25,7 @@
class AutoTypePlatformInterface class AutoTypePlatformInterface
{ {
public: public:
virtual ~AutoTypePlatformInterface() virtual ~AutoTypePlatformInterface() = default;
{
}
virtual bool isAvailable() = 0; virtual bool isAvailable() = 0;
virtual QStringList windowTitles() = 0; virtual QStringList windowTitles() = 0;
virtual WId activeWindow() = 0; virtual WId activeWindow() = 0;

View File

@ -92,9 +92,7 @@ AutoTypeSelectDialog::AutoTypeSelectDialog(QWidget* parent)
} }
// Required for QScopedPointer // Required for QScopedPointer
AutoTypeSelectDialog::~AutoTypeSelectDialog() AutoTypeSelectDialog::~AutoTypeSelectDialog() = default;
{
}
void AutoTypeSelectDialog::setMatches(const QList<AutoTypeMatch>& matches, void AutoTypeSelectDialog::setMatches(const QList<AutoTypeMatch>& matches,
const QList<QSharedPointer<Database>>& dbs, const QList<QSharedPointer<Database>>& dbs,

View File

@ -23,9 +23,7 @@
class AutoTypeTestInterface class AutoTypeTestInterface
{ {
public: public:
virtual ~AutoTypeTestInterface() virtual ~AutoTypeTestInterface() = default;
{
}
virtual void setActiveWindowTitle(const QString& title) = 0; virtual void setActiveWindowTitle(const QString& title) = 0;
virtual QString actionChars() = 0; virtual QString actionChars() = 0;

View File

@ -29,9 +29,7 @@ AddGroup::AddGroup()
positionalArguments.append({QString("group"), QObject::tr("Path of the group to add."), QString("")}); positionalArguments.append({QString("group"), QObject::tr("Path of the group to add."), QString("")});
} }
AddGroup::~AddGroup() AddGroup::~AddGroup() = default;
{
}
int AddGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser) int AddGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
{ {

View File

@ -103,9 +103,7 @@ Command::Command()
options.append(Command::QuietOption); options.append(Command::QuietOption);
} }
Command::~Command() Command::~Command() = default;
{
}
QString Command::getDescriptionLine() QString Command::getDescriptionLine()
{ {

View File

@ -30,9 +30,7 @@ Move::Move()
positionalArguments.append({QString("group"), QObject::tr("Path of the destination group."), QString("")}); positionalArguments.append({QString("group"), QObject::tr("Path of the destination group."), QString("")});
} }
Move::~Move() Move::~Move() = default;
{
}
int Move::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser) int Move::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
{ {

View File

@ -30,9 +30,7 @@ RemoveGroup::RemoveGroup()
positionalArguments.append({QString("group"), QObject::tr("Path of the group to remove."), QString("")}); positionalArguments.append({QString("group"), QObject::tr("Path of the group to remove."), QString("")});
} }
RemoveGroup::~RemoveGroup() RemoveGroup::~RemoveGroup() = default;
{
}
int RemoveGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser) int RemoveGroup::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser> parser)
{ {

View File

@ -78,13 +78,9 @@ QDateTime Clock::parse(const QString& text, const QString& format)
return QDateTime::fromString(text, format); return QDateTime::fromString(text, format);
} }
Clock::~Clock() Clock::~Clock() = default;
{
}
Clock::Clock() Clock::Clock() = default;
{
}
QDateTime Clock::currentDateTimeUtcImpl() const QDateTime Clock::currentDateTimeUtcImpl() const
{ {

View File

@ -454,9 +454,7 @@ Config::Config(QObject* parent)
init(configFiles.first, configFiles.second); init(configFiles.first, configFiles.second);
} }
Config::~Config() Config::~Config() = default;
{
}
void Config::init(const QString& configFileName, const QString& localConfigFileName) void Config::init(const QString& configFileName, const QString& localConfigFileName)
{ {

View File

@ -19,9 +19,7 @@
#include "core/Global.h" #include "core/Global.h"
SignalMultiplexer::SignalMultiplexer() SignalMultiplexer::SignalMultiplexer() = default;
{
}
SignalMultiplexer::~SignalMultiplexer() SignalMultiplexer::~SignalMultiplexer()
{ {

View File

@ -27,9 +27,7 @@ OpData01::OpData01(QObject* parent)
{ {
} }
OpData01::~OpData01() OpData01::~OpData01() = default;
{
}
bool OpData01::decodeBase64(QString const& b64String, const QByteArray& key, const QByteArray& hmacKey) bool OpData01::decodeBase64(QString const& b64String, const QByteArray& key, const QByteArray& hmacKey)
{ {

View File

@ -35,9 +35,7 @@ OpVaultReader::OpVaultReader(QObject* parent)
{ {
} }
OpVaultReader::~OpVaultReader() OpVaultReader::~OpVaultReader() = default;
{
}
Database* OpVaultReader::readDatabase(QDir& opdataDir, const QString& password) Database* OpVaultReader::readDatabase(QDir& opdataDir, const QString& password)
{ {

View File

@ -327,9 +327,7 @@ AboutDialog::AboutDialog(QWidget* parent)
m_ui->buttonBox->button(QDialogButtonBox::Close)->setDefault(true); m_ui->buttonBox->button(QDialogButtonBox::Close)->setDefault(true);
} }
AboutDialog::~AboutDialog() AboutDialog::~AboutDialog() = default;
{
}
void AboutDialog::copyToClipboard() void AboutDialog::copyToClipboard()
{ {

View File

@ -175,9 +175,7 @@ ApplicationSettingsWidget::ApplicationSettingsWidget(QWidget* parent)
m_secUi->quickUnlockCheckBox->setVisible(showQuickUnlock); m_secUi->quickUnlockCheckBox->setVisible(showQuickUnlock);
} }
ApplicationSettingsWidget::~ApplicationSettingsWidget() ApplicationSettingsWidget::~ApplicationSettingsWidget() = default;
{
}
void ApplicationSettingsWidget::addSettingsPage(ISettingsPage* page) void ApplicationSettingsWidget::addSettingsPage(ISettingsPage* page)
{ {

View File

@ -30,9 +30,7 @@ namespace Ui
class ISettingsPage class ISettingsPage
{ {
public: public:
virtual ~ISettingsPage() virtual ~ISettingsPage() = default;
{
}
virtual QString name() = 0; virtual QString name() = 0;
virtual QIcon icon() = 0; virtual QIcon icon() = 0;
virtual QWidget* createWidget() = 0; virtual QWidget* createWidget() = 0;

View File

@ -43,9 +43,7 @@ CategoryListWidget::CategoryListWidget(QWidget* parent)
// clang-format on // clang-format on
} }
CategoryListWidget::~CategoryListWidget() CategoryListWidget::~CategoryListWidget() = default;
{
}
QSize CategoryListWidget::sizeHint() const QSize CategoryListWidget::sizeHint() const
{ {

View File

@ -61,6 +61,4 @@ void CloneDialog::cloneEntry()
close(); close();
} }
CloneDialog::~CloneDialog() CloneDialog::~CloneDialog() = default;
{
}

View File

@ -141,9 +141,7 @@ DatabaseOpenWidget::DatabaseOpenWidget(QWidget* parent)
connect(m_ui->resetQuickUnlockButton, &QPushButton::pressed, this, [this] { resetQuickUnlock(); }); connect(m_ui->resetQuickUnlockButton, &QPushButton::pressed, this, [this] { resetQuickUnlock(); });
} }
DatabaseOpenWidget::~DatabaseOpenWidget() DatabaseOpenWidget::~DatabaseOpenWidget() = default;
{
}
void DatabaseOpenWidget::showEvent(QShowEvent* event) void DatabaseOpenWidget::showEvent(QShowEvent* event)
{ {

View File

@ -68,9 +68,7 @@ DatabaseTabWidget::DatabaseTabWidget(QWidget* parent)
connect(&m_lockDelayTimer, &QTimer::timeout, this, [this] { lockDatabases(); }); connect(&m_lockDelayTimer, &QTimer::timeout, this, [this] { lockDatabases(); });
} }
DatabaseTabWidget::~DatabaseTabWidget() DatabaseTabWidget::~DatabaseTabWidget() = default;
{
}
void DatabaseTabWidget::toggleTabbar() void DatabaseTabWidget::toggleTabbar()
{ {

View File

@ -36,9 +36,7 @@ DatabaseWidgetStateSync::DatabaseWidgetStateSync(QObject* parent)
connect(qApp, &QCoreApplication::aboutToQuit, this, &DatabaseWidgetStateSync::sync); connect(qApp, &QCoreApplication::aboutToQuit, this, &DatabaseWidgetStateSync::sync);
} }
DatabaseWidgetStateSync::~DatabaseWidgetStateSync() DatabaseWidgetStateSync::~DatabaseWidgetStateSync() = default;
{
}
/** /**
* Sync state with persistent storage. * Sync state with persistent storage.

View File

@ -45,9 +45,7 @@ EditWidget::EditWidget(QWidget* parent)
connect(m_ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), SLOT(buttonClicked(QAbstractButton*))); connect(m_ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), SLOT(buttonClicked(QAbstractButton*)));
} }
EditWidget::~EditWidget() EditWidget::~EditWidget() = default;
{
}
void EditWidget::addPage(const QString& labelText, const QIcon& icon, QWidget* widget) void EditWidget::addPage(const QString& labelText, const QIcon& icon, QWidget* widget)
{ {

View File

@ -86,9 +86,7 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent)
#endif #endif
} }
EditWidgetIcons::~EditWidgetIcons() EditWidgetIcons::~EditWidgetIcons() = default;
{
}
IconStruct EditWidgetIcons::state() IconStruct EditWidgetIcons::state()
{ {

View File

@ -41,9 +41,7 @@ EditWidgetProperties::EditWidgetProperties(QWidget* parent)
connect(m_ui->removeCustomDataButton, SIGNAL(clicked()), SLOT(removeSelectedPluginData())); connect(m_ui->removeCustomDataButton, SIGNAL(clicked()), SLOT(removeSelectedPluginData()));
} }
EditWidgetProperties::~EditWidgetProperties() EditWidgetProperties::~EditWidgetProperties() = default;
{
}
void EditWidgetProperties::setFields(const TimeInfo& timeInfo, const QUuid& uuid) void EditWidgetProperties::setFields(const TimeInfo& timeInfo, const QUuid& uuid)
{ {

View File

@ -107,9 +107,7 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent)
#endif #endif
} }
EntryPreviewWidget::~EntryPreviewWidget() EntryPreviewWidget::~EntryPreviewWidget() = default;
{
}
void EntryPreviewWidget::clear() void EntryPreviewWidget::clear()
{ {

View File

@ -21,9 +21,7 @@
FileDialog* FileDialog::m_instance(nullptr); FileDialog* FileDialog::m_instance(nullptr);
FileDialog::FileDialog() FileDialog::FileDialog() = default;
{
}
QString FileDialog::getOpenFileName(QWidget* parent, QString FileDialog::getOpenFileName(QWidget* parent,
const QString& caption, const QString& caption,

View File

@ -27,9 +27,7 @@ public:
static QFont fixedFont(); static QFont fixedFont();
private: private:
Font() Font() = default;
{
}
}; };
#endif // KEEPASSX_FONT_H #endif // KEEPASSX_FONT_H

View File

@ -48,9 +48,7 @@ private:
Icons* Icons::m_instance(nullptr); Icons* Icons::m_instance(nullptr);
Icons::Icons() Icons::Icons() = default;
{
}
QString Icons::applicationIconName() QString Icons::applicationIconName()
{ {

View File

@ -81,9 +81,7 @@ SearchWidget::SearchWidget(QWidget* parent)
} }
} }
SearchWidget::~SearchWidget() SearchWidget::~SearchWidget() = default;
{
}
bool SearchWidget::eventFilter(QObject* obj, QEvent* event) bool SearchWidget::eventFilter(QObject* obj, QEvent* event)
{ {

View File

@ -53,9 +53,7 @@ TotpDialog::TotpDialog(QWidget* parent, Entry* entry)
connect(m_ui->buttonBox, SIGNAL(accepted()), SLOT(copyToClipboard())); connect(m_ui->buttonBox, SIGNAL(accepted()), SLOT(copyToClipboard()));
} }
TotpDialog::~TotpDialog() TotpDialog::~TotpDialog() = default;
{
}
void TotpDialog::copyToClipboard() void TotpDialog::copyToClipboard()
{ {

View File

@ -38,9 +38,7 @@ TotpSetupDialog::TotpSetupDialog(QWidget* parent, Entry* entry)
init(); init();
} }
TotpSetupDialog::~TotpSetupDialog() TotpSetupDialog::~TotpSetupDialog() = default;
{
}
void TotpSetupDialog::saveSettings() void TotpSetupDialog::saveSettings()
{ {

View File

@ -51,9 +51,7 @@ WelcomeWidget::WelcomeWidget(QWidget* parent)
SLOT(openDatabaseFromFile(QListWidgetItem*))); SLOT(openDatabaseFromFile(QListWidgetItem*)));
} }
WelcomeWidget::~WelcomeWidget() WelcomeWidget::~WelcomeWidget() = default;
{
}
void WelcomeWidget::openDatabaseFromFile(QListWidgetItem* item) void WelcomeWidget::openDatabaseFromFile(QListWidgetItem* item)
{ {

View File

@ -88,9 +88,7 @@ void CsvImportWidget::skippedChanged(int rows)
updateTableview(); updateTableview();
} }
CsvImportWidget::~CsvImportWidget() CsvImportWidget::~CsvImportWidget() = default;
{
}
void CsvImportWidget::configParser() void CsvImportWidget::configParser()
{ {

View File

@ -29,9 +29,7 @@ CsvImportWizard::CsvImportWizard(QWidget* parent)
connect(m_parse, SIGNAL(editFinished(bool)), this, SLOT(parseFinished(bool))); connect(m_parse, SIGNAL(editFinished(bool)), this, SLOT(parseFinished(bool)));
} }
CsvImportWizard::~CsvImportWizard() CsvImportWizard::~CsvImportWizard() = default;
{
}
void CsvImportWizard::load(const QString& filename, Database* database) void CsvImportWizard::load(const QString& filename, Database* database)
{ {

View File

@ -26,9 +26,7 @@ CsvParserModel::CsvParserModel(QObject* parent)
{ {
} }
CsvParserModel::~CsvParserModel() CsvParserModel::~CsvParserModel() = default;
{
}
void CsvParserModel::setFilename(const QString& filename) void CsvParserModel::setFilename(const QString& filename)
{ {

View File

@ -43,9 +43,7 @@ KeyComponentWidget::KeyComponentWidget(QWidget* parent)
m_ui->stackedWidget->blockSignals(prev); m_ui->stackedWidget->blockSignals(prev);
} }
KeyComponentWidget::~KeyComponentWidget() KeyComponentWidget::~KeyComponentWidget() = default;
{
}
void KeyComponentWidget::setComponentAdded(bool added) void KeyComponentWidget::setComponentAdded(bool added)
{ {

View File

@ -33,9 +33,7 @@ KeyFileEditWidget::KeyFileEditWidget(DatabaseSettingsWidget* parent)
initComponent(); initComponent();
} }
KeyFileEditWidget::~KeyFileEditWidget() KeyFileEditWidget::~KeyFileEditWidget() = default;
{
}
bool KeyFileEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key) bool KeyFileEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
{ {

View File

@ -29,9 +29,7 @@ PasswordEditWidget::PasswordEditWidget(QWidget* parent)
initComponent(); initComponent();
} }
PasswordEditWidget::~PasswordEditWidget() PasswordEditWidget::~PasswordEditWidget() = default;
{
}
bool PasswordEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key) bool PasswordEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
{ {

View File

@ -33,9 +33,7 @@ YubiKeyEditWidget::YubiKeyEditWidget(QWidget* parent)
connect(YubiKey::instance(), SIGNAL(detectComplete(bool)), SLOT(hardwareKeyResponse(bool)), Qt::QueuedConnection); connect(YubiKey::instance(), SIGNAL(detectComplete(bool)), SLOT(hardwareKeyResponse(bool)), Qt::QueuedConnection);
} }
YubiKeyEditWidget::~YubiKeyEditWidget() YubiKeyEditWidget::~YubiKeyEditWidget() = default;
{
}
bool YubiKeyEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key) bool YubiKeyEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
{ {

View File

@ -122,9 +122,7 @@ DatabaseSettingsDialog::DatabaseSettingsDialog(QWidget* parent)
pageChanged(); pageChanged();
} }
DatabaseSettingsDialog::~DatabaseSettingsDialog() DatabaseSettingsDialog::~DatabaseSettingsDialog() = default;
{
}
void DatabaseSettingsDialog::load(const QSharedPointer<Database>& db) void DatabaseSettingsDialog::load(const QSharedPointer<Database>& db)
{ {

View File

@ -41,9 +41,7 @@ namespace Ui
class IDatabaseSettingsPage class IDatabaseSettingsPage
{ {
public: public:
virtual ~IDatabaseSettingsPage() virtual ~IDatabaseSettingsPage() = default;
{
}
virtual QString name() = 0; virtual QString name() = 0;
virtual QIcon icon() = 0; virtual QIcon icon() = 0;
virtual QWidget* createWidget() = 0; virtual QWidget* createWidget() = 0;

View File

@ -23,9 +23,7 @@ DatabaseSettingsWidget::DatabaseSettingsWidget(QWidget* parent)
{ {
} }
DatabaseSettingsWidget::~DatabaseSettingsWidget() DatabaseSettingsWidget::~DatabaseSettingsWidget() = default;
{
}
/** /**
* Load the database to be configured by this page and initialize the page. * Load the database to be configured by this page and initialize the page.

View File

@ -71,9 +71,7 @@ DatabaseSettingsWidgetDatabaseKey::DatabaseSettingsWidgetDatabaseKey(QWidget* pa
setLayout(vbox); setLayout(vbox);
} }
DatabaseSettingsWidgetDatabaseKey::~DatabaseSettingsWidgetDatabaseKey() DatabaseSettingsWidgetDatabaseKey::~DatabaseSettingsWidgetDatabaseKey() = default;
{
}
void DatabaseSettingsWidgetDatabaseKey::load(QSharedPointer<Database> db) void DatabaseSettingsWidgetDatabaseKey::load(QSharedPointer<Database> db)
{ {

View File

@ -70,9 +70,7 @@ DatabaseSettingsWidgetEncryption::DatabaseSettingsWidgetEncryption(QWidget* pare
connect(m_ui->parallelismSpinBox, SIGNAL(valueChanged(int)), SLOT(markDirty())); connect(m_ui->parallelismSpinBox, SIGNAL(valueChanged(int)), SLOT(markDirty()));
} }
DatabaseSettingsWidgetEncryption::~DatabaseSettingsWidgetEncryption() DatabaseSettingsWidgetEncryption::~DatabaseSettingsWidgetEncryption() = default;
{
}
#define IS_ARGON2(uuid) (uuid == KeePass2::KDF_ARGON2D || uuid == KeePass2::KDF_ARGON2ID) #define IS_ARGON2(uuid) (uuid == KeePass2::KDF_ARGON2D || uuid == KeePass2::KDF_ARGON2ID)
#define IS_AES_KDF(uuid) (uuid == KeePass2::KDF_AES_KDBX3 || uuid == KeePass2::KDF_AES_KDBX4) #define IS_AES_KDF(uuid) (uuid == KeePass2::KDF_AES_KDBX3 || uuid == KeePass2::KDF_AES_KDBX4)

View File

@ -33,9 +33,7 @@ DatabaseSettingsWidgetGeneral::DatabaseSettingsWidgetGeneral(QWidget* parent)
connect(m_ui->historyMaxSizeCheckBox, SIGNAL(toggled(bool)), m_ui->historyMaxSizeSpinBox, SLOT(setEnabled(bool))); connect(m_ui->historyMaxSizeCheckBox, SIGNAL(toggled(bool)), m_ui->historyMaxSizeSpinBox, SLOT(setEnabled(bool)));
} }
DatabaseSettingsWidgetGeneral::~DatabaseSettingsWidgetGeneral() DatabaseSettingsWidgetGeneral::~DatabaseSettingsWidgetGeneral() = default;
{
}
void DatabaseSettingsWidgetGeneral::initialize() void DatabaseSettingsWidgetGeneral::initialize()
{ {

View File

@ -42,9 +42,7 @@ DatabaseSettingsWidgetMaintenance::DatabaseSettingsWidgetMaintenance(QWidget* pa
SLOT(selectionChanged())); SLOT(selectionChanged()));
} }
DatabaseSettingsWidgetMaintenance::~DatabaseSettingsWidgetMaintenance() DatabaseSettingsWidgetMaintenance::~DatabaseSettingsWidgetMaintenance() = default;
{
}
void DatabaseSettingsWidgetMaintenance::populateIcons(QSharedPointer<Database> db) void DatabaseSettingsWidgetMaintenance::populateIcons(QSharedPointer<Database> db)
{ {

View File

@ -28,9 +28,7 @@ DatabaseSettingWidgetMetaData::DatabaseSettingWidgetMetaData(QWidget* parent)
m_ui->setupUi(this); m_ui->setupUi(this);
} }
DatabaseSettingWidgetMetaData::~DatabaseSettingWidgetMetaData() DatabaseSettingWidgetMetaData::~DatabaseSettingWidgetMetaData() = default;
{
}
void DatabaseSettingWidgetMetaData::initialize() void DatabaseSettingWidgetMetaData::initialize()
{ {

View File

@ -135,9 +135,7 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
m_mainUi->passwordEdit->setQualityVisible(true); m_mainUi->passwordEdit->setQualityVisible(true);
} }
EditEntryWidget::~EditEntryWidget() EditEntryWidget::~EditEntryWidget() = default;
{
}
void EditEntryWidget::setupMain() void EditEntryWidget::setupMain()
{ {

View File

@ -75,9 +75,7 @@ EntryAttachmentsWidget::EntryAttachmentsWidget(QWidget* parent)
updateButtonsEnabled(); updateButtonsEnabled();
} }
EntryAttachmentsWidget::~EntryAttachmentsWidget() EntryAttachmentsWidget::~EntryAttachmentsWidget() = default;
{
}
const EntryAttachments* EntryAttachmentsWidget::attachments() const const EntryAttachments* EntryAttachmentsWidget::attachments() const
{ {

View File

@ -44,9 +44,7 @@ ExportDialog::ExportDialog(QSharedPointer<const Database> db, DatabaseTabWidget*
MessageWidget::Warning); MessageWidget::Warning);
} }
ExportDialog::~ExportDialog() ExportDialog::~ExportDialog() = default;
{
}
QString ExportDialog::getStrategyName(ExportSortingStrategy strategy) QString ExportDialog::getStrategyName(ExportSortingStrategy strategy)
{ {

View File

@ -112,9 +112,7 @@ EditGroupWidget::EditGroupWidget(QWidget* parent)
setupModifiedTracking(); setupModifiedTracking();
} }
EditGroupWidget::~EditGroupWidget() EditGroupWidget::~EditGroupWidget() = default;
{
}
void EditGroupWidget::setupModifiedTracking() void EditGroupWidget::setupModifiedTracking()
{ {

View File

@ -39,9 +39,7 @@ namespace Ui
class IEditGroupPage class IEditGroupPage
{ {
public: public:
virtual ~IEditGroupPage() virtual ~IEditGroupPage() = default;
{
}
virtual QString name() = 0; virtual QString name() = 0;
virtual QIcon icon() = 0; virtual QIcon icon() = 0;
virtual QWidget* createWidget() = 0; virtual QWidget* createWidget() = 0;

View File

@ -22,9 +22,7 @@ OSUtilsBase::OSUtilsBase(QObject* parent)
{ {
} }
OSUtilsBase::~OSUtilsBase() OSUtilsBase::~OSUtilsBase() = default;
{
}
bool OSUtilsBase::setPreventScreenCapture(QWindow*, bool) const bool OSUtilsBase::setPreventScreenCapture(QWindow*, bool) const
{ {

View File

@ -25,6 +25,4 @@ ScreenLockListener::ScreenLockListener(QWidget* parent)
connect(m_listener, SIGNAL(screenLocked()), this, SIGNAL(screenLocked())); connect(m_listener, SIGNAL(screenLocked()), this, SIGNAL(screenLocked()));
} }
ScreenLockListener::~ScreenLockListener() ScreenLockListener::~ScreenLockListener() = default;
{
}

View File

@ -83,9 +83,7 @@ NixUtils::NixUtils(QObject* parent)
sessionBus.callWithCallback(msg, this, SLOT(handleColorSchemeRead(QDBusVariant))); sessionBus.callWithCallback(msg, this, SLOT(handleColorSchemeRead(QDBusVariant)));
} }
NixUtils::~NixUtils() NixUtils::~NixUtils() = default;
{
}
bool NixUtils::isDarkMode() const bool NixUtils::isDarkMode() const
{ {

View File

@ -95,9 +95,7 @@ ReportsDialog::ReportsDialog(QWidget* parent)
connect(m_editEntryWidget, SIGNAL(editFinished(bool)), SLOT(switchToMainView(bool))); connect(m_editEntryWidget, SIGNAL(editFinished(bool)), SLOT(switchToMainView(bool)));
} }
ReportsDialog::~ReportsDialog() ReportsDialog::~ReportsDialog() = default;
{
}
void ReportsDialog::load(const QSharedPointer<Database>& db) void ReportsDialog::load(const QSharedPointer<Database>& db)
{ {

View File

@ -41,9 +41,7 @@ namespace Ui
class IReportsPage class IReportsPage
{ {
public: public:
virtual ~IReportsPage() virtual ~IReportsPage() = default;
{
}
virtual QString name() = 0; virtual QString name() = 0;
virtual QIcon icon() = 0; virtual QIcon icon() = 0;
virtual QWidget* createWidget() = 0; virtual QWidget* createWidget() = 0;

View File

@ -22,9 +22,7 @@ ReportsWidget::ReportsWidget(QWidget* parent)
{ {
} }
ReportsWidget::~ReportsWidget() ReportsWidget::~ReportsWidget() = default;
{
}
/** /**
* Load the database to be configured by this page and initialize the page. * Load the database to be configured by this page and initialize the page.

View File

@ -158,9 +158,7 @@ ReportsWidgetHealthcheck::ReportsWidgetHealthcheck(QWidget* parent)
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries())); new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
} }
ReportsWidgetHealthcheck::~ReportsWidgetHealthcheck() ReportsWidgetHealthcheck::~ReportsWidgetHealthcheck() = default;
{
}
void ReportsWidgetHealthcheck::addHealthRow(QSharedPointer<PasswordHealth> health, void ReportsWidgetHealthcheck::addHealthRow(QSharedPointer<PasswordHealth> health,
Group* group, Group* group,

View File

@ -79,9 +79,7 @@ ReportsWidgetHibp::ReportsWidgetHibp(QWidget* parent)
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries())); new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
} }
ReportsWidgetHibp::~ReportsWidgetHibp() ReportsWidgetHibp::~ReportsWidgetHibp() = default;
{
}
void ReportsWidgetHibp::loadSettings(QSharedPointer<Database> db) void ReportsWidgetHibp::loadSettings(QSharedPointer<Database> db)
{ {

View File

@ -41,9 +41,7 @@ ReportsWidgetStatistics::ReportsWidgetStatistics(QWidget* parent)
m_ui->statisticsTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); m_ui->statisticsTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
} }
ReportsWidgetStatistics::~ReportsWidgetStatistics() ReportsWidgetStatistics::~ReportsWidgetStatistics() = default;
{
}
void ReportsWidgetStatistics::addStatsRow(QString name, QString value, bool bad, QString badMsg) void ReportsWidgetStatistics::addStatsRow(QString name, QString value, bool bad, QString badMsg)
{ {

View File

@ -22,9 +22,7 @@ SettingsWidget::SettingsWidget(QWidget* parent)
{ {
} }
SettingsWidget::~SettingsWidget() SettingsWidget::~SettingsWidget() = default;
{
}
/** /**
* Switch between simple mode (the default) and advanced mode. * Switch between simple mode (the default) and advanced mode.

View File

@ -773,9 +773,7 @@ namespace Phantom
static MenuItemMetrics ofFontHeight(int fontHeight); static MenuItemMetrics ofFontHeight(int fontHeight);
private: private:
MenuItemMetrics() MenuItemMetrics() = default;
{
}
}; };
MenuItemMetrics MenuItemMetrics::ofFontHeight(int fontHeight) MenuItemMetrics MenuItemMetrics::ofFontHeight(int fontHeight)

View File

@ -42,9 +42,7 @@ namespace Phantom
struct Rgb struct Rgb
{ {
qreal r, g, b; qreal r, g, b;
Rgb() Rgb() = default;
{
}
Rgb(qreal r, qreal g, qreal b) Rgb(qreal r, qreal g, qreal b)
: r(r) : r(r)
, g(g) , g(g)
@ -78,9 +76,7 @@ namespace Phantom
struct Hsl struct Hsl
{ {
qreal h, s, l; qreal h, s, l;
Hsl() Hsl() = default;
{
}
Hsl(qreal h, qreal s, qreal l) Hsl(qreal h, qreal s, qreal l)
: h(h) : h(h)
, s(s) , s(s)

View File

@ -33,9 +33,7 @@ TagModel::TagModel(QObject* parent)
<< qMakePair(tr("Weak Passwords"), QString("is:weak")); << qMakePair(tr("Weak Passwords"), QString("is:weak"));
} }
TagModel::~TagModel() TagModel::~TagModel() = default;
{
}
void TagModel::setDatabase(QSharedPointer<Database> db) void TagModel::setDatabase(QSharedPointer<Database> db)
{ {

View File

@ -63,9 +63,7 @@ NewDatabaseWizard::NewDatabaseWizard(QWidget* parent)
pageFrame->setPalette(framePalette); pageFrame->setPalette(framePalette);
} }
NewDatabaseWizard::~NewDatabaseWizard() NewDatabaseWizard::~NewDatabaseWizard() = default;
{
}
bool NewDatabaseWizard::validateCurrentPage() bool NewDatabaseWizard::validateCurrentPage()
{ {

View File

@ -31,9 +31,7 @@ NewDatabaseWizardPage::NewDatabaseWizardPage(QWidget* parent)
connect(m_ui->advancedSettingsButton, SIGNAL(clicked()), SLOT(toggleAdvancedSettings())); connect(m_ui->advancedSettingsButton, SIGNAL(clicked()), SLOT(toggleAdvancedSettings()));
} }
NewDatabaseWizardPage::~NewDatabaseWizardPage() NewDatabaseWizardPage::~NewDatabaseWizardPage() = default;
{
}
/** /**
* Set the database settings page widget for this wizard page. * Set the database settings page widget for this wizard page.

View File

@ -27,6 +27,4 @@ NewDatabaseWizardPageDatabaseKey::NewDatabaseWizardPageDatabaseKey(QWidget* pare
setSubTitle(tr("A set of credentials known only to you that protects your database.")); setSubTitle(tr("A set of credentials known only to you that protects your database."));
} }
NewDatabaseWizardPageDatabaseKey::~NewDatabaseWizardPageDatabaseKey() NewDatabaseWizardPageDatabaseKey::~NewDatabaseWizardPageDatabaseKey() = default;
{
}

View File

@ -28,6 +28,4 @@ NewDatabaseWizardPageEncryption::NewDatabaseWizardPageEncryption(QWidget* parent
"Don't worry, you can change them later in the database settings.")); "Don't worry, you can change them later in the database settings."));
} }
NewDatabaseWizardPageEncryption::~NewDatabaseWizardPageEncryption() NewDatabaseWizardPageEncryption::~NewDatabaseWizardPageEncryption() = default;
{
}

View File

@ -27,6 +27,4 @@ NewDatabaseWizardPageMetaData::NewDatabaseWizardPageMetaData(QWidget* parent)
setSubTitle(tr("Please fill in the display name and an optional description for your new database:")); setSubTitle(tr("Please fill in the display name and an optional description for your new database:"));
} }
NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData() NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData() = default;
{
}

View File

@ -18,9 +18,7 @@
#include "YubiKey.h" #include "YubiKey.h"
YubiKey::YubiKey() YubiKey::YubiKey() = default;
{
}
YubiKey* YubiKey::m_instance(Q_NULLPTR); YubiKey* YubiKey::m_instance(Q_NULLPTR);