mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
clang-tidy: use = default (#7999)
This commit is contained in:
parent
e1fbed0e25
commit
52af8a5e2a
@ -25,9 +25,7 @@
|
||||
class AutoTypePlatformInterface
|
||||
{
|
||||
public:
|
||||
virtual ~AutoTypePlatformInterface()
|
||||
{
|
||||
}
|
||||
virtual ~AutoTypePlatformInterface() = default;
|
||||
virtual bool isAvailable() = 0;
|
||||
virtual QStringList windowTitles() = 0;
|
||||
virtual WId activeWindow() = 0;
|
||||
|
@ -92,9 +92,7 @@ AutoTypeSelectDialog::AutoTypeSelectDialog(QWidget* parent)
|
||||
}
|
||||
|
||||
// Required for QScopedPointer
|
||||
AutoTypeSelectDialog::~AutoTypeSelectDialog()
|
||||
{
|
||||
}
|
||||
AutoTypeSelectDialog::~AutoTypeSelectDialog() = default;
|
||||
|
||||
void AutoTypeSelectDialog::setMatches(const QList<AutoTypeMatch>& matches,
|
||||
const QList<QSharedPointer<Database>>& dbs,
|
||||
|
@ -23,9 +23,7 @@
|
||||
class AutoTypeTestInterface
|
||||
{
|
||||
public:
|
||||
virtual ~AutoTypeTestInterface()
|
||||
{
|
||||
}
|
||||
virtual ~AutoTypeTestInterface() = default;
|
||||
virtual void setActiveWindowTitle(const QString& title) = 0;
|
||||
|
||||
virtual QString actionChars() = 0;
|
||||
|
@ -29,9 +29,7 @@ AddGroup::AddGroup()
|
||||
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)
|
||||
{
|
||||
|
@ -103,9 +103,7 @@ Command::Command()
|
||||
options.append(Command::QuietOption);
|
||||
}
|
||||
|
||||
Command::~Command()
|
||||
{
|
||||
}
|
||||
Command::~Command() = default;
|
||||
|
||||
QString Command::getDescriptionLine()
|
||||
{
|
||||
|
@ -30,9 +30,7 @@ Move::Move()
|
||||
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)
|
||||
{
|
||||
|
@ -30,9 +30,7 @@ RemoveGroup::RemoveGroup()
|
||||
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)
|
||||
{
|
||||
|
@ -78,13 +78,9 @@ QDateTime Clock::parse(const QString& text, const QString& format)
|
||||
return QDateTime::fromString(text, format);
|
||||
}
|
||||
|
||||
Clock::~Clock()
|
||||
{
|
||||
}
|
||||
Clock::~Clock() = default;
|
||||
|
||||
Clock::Clock()
|
||||
{
|
||||
}
|
||||
Clock::Clock() = default;
|
||||
|
||||
QDateTime Clock::currentDateTimeUtcImpl() const
|
||||
{
|
||||
|
@ -454,9 +454,7 @@ Config::Config(QObject* parent)
|
||||
init(configFiles.first, configFiles.second);
|
||||
}
|
||||
|
||||
Config::~Config()
|
||||
{
|
||||
}
|
||||
Config::~Config() = default;
|
||||
|
||||
void Config::init(const QString& configFileName, const QString& localConfigFileName)
|
||||
{
|
||||
|
@ -19,9 +19,7 @@
|
||||
|
||||
#include "core/Global.h"
|
||||
|
||||
SignalMultiplexer::SignalMultiplexer()
|
||||
{
|
||||
}
|
||||
SignalMultiplexer::SignalMultiplexer() = default;
|
||||
|
||||
SignalMultiplexer::~SignalMultiplexer()
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -35,9 +35,7 @@ OpVaultReader::OpVaultReader(QObject* parent)
|
||||
{
|
||||
}
|
||||
|
||||
OpVaultReader::~OpVaultReader()
|
||||
{
|
||||
}
|
||||
OpVaultReader::~OpVaultReader() = default;
|
||||
|
||||
Database* OpVaultReader::readDatabase(QDir& opdataDir, const QString& password)
|
||||
{
|
||||
|
@ -327,9 +327,7 @@ AboutDialog::AboutDialog(QWidget* parent)
|
||||
m_ui->buttonBox->button(QDialogButtonBox::Close)->setDefault(true);
|
||||
}
|
||||
|
||||
AboutDialog::~AboutDialog()
|
||||
{
|
||||
}
|
||||
AboutDialog::~AboutDialog() = default;
|
||||
|
||||
void AboutDialog::copyToClipboard()
|
||||
{
|
||||
|
@ -175,9 +175,7 @@ ApplicationSettingsWidget::ApplicationSettingsWidget(QWidget* parent)
|
||||
m_secUi->quickUnlockCheckBox->setVisible(showQuickUnlock);
|
||||
}
|
||||
|
||||
ApplicationSettingsWidget::~ApplicationSettingsWidget()
|
||||
{
|
||||
}
|
||||
ApplicationSettingsWidget::~ApplicationSettingsWidget() = default;
|
||||
|
||||
void ApplicationSettingsWidget::addSettingsPage(ISettingsPage* page)
|
||||
{
|
||||
|
@ -30,9 +30,7 @@ namespace Ui
|
||||
class ISettingsPage
|
||||
{
|
||||
public:
|
||||
virtual ~ISettingsPage()
|
||||
{
|
||||
}
|
||||
virtual ~ISettingsPage() = default;
|
||||
virtual QString name() = 0;
|
||||
virtual QIcon icon() = 0;
|
||||
virtual QWidget* createWidget() = 0;
|
||||
|
@ -43,9 +43,7 @@ CategoryListWidget::CategoryListWidget(QWidget* parent)
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
CategoryListWidget::~CategoryListWidget()
|
||||
{
|
||||
}
|
||||
CategoryListWidget::~CategoryListWidget() = default;
|
||||
|
||||
QSize CategoryListWidget::sizeHint() const
|
||||
{
|
||||
|
@ -61,6 +61,4 @@ void CloneDialog::cloneEntry()
|
||||
close();
|
||||
}
|
||||
|
||||
CloneDialog::~CloneDialog()
|
||||
{
|
||||
}
|
||||
CloneDialog::~CloneDialog() = default;
|
||||
|
@ -141,9 +141,7 @@ DatabaseOpenWidget::DatabaseOpenWidget(QWidget* parent)
|
||||
connect(m_ui->resetQuickUnlockButton, &QPushButton::pressed, this, [this] { resetQuickUnlock(); });
|
||||
}
|
||||
|
||||
DatabaseOpenWidget::~DatabaseOpenWidget()
|
||||
{
|
||||
}
|
||||
DatabaseOpenWidget::~DatabaseOpenWidget() = default;
|
||||
|
||||
void DatabaseOpenWidget::showEvent(QShowEvent* event)
|
||||
{
|
||||
|
@ -68,9 +68,7 @@ DatabaseTabWidget::DatabaseTabWidget(QWidget* parent)
|
||||
connect(&m_lockDelayTimer, &QTimer::timeout, this, [this] { lockDatabases(); });
|
||||
}
|
||||
|
||||
DatabaseTabWidget::~DatabaseTabWidget()
|
||||
{
|
||||
}
|
||||
DatabaseTabWidget::~DatabaseTabWidget() = default;
|
||||
|
||||
void DatabaseTabWidget::toggleTabbar()
|
||||
{
|
||||
|
@ -36,9 +36,7 @@ DatabaseWidgetStateSync::DatabaseWidgetStateSync(QObject* parent)
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &DatabaseWidgetStateSync::sync);
|
||||
}
|
||||
|
||||
DatabaseWidgetStateSync::~DatabaseWidgetStateSync()
|
||||
{
|
||||
}
|
||||
DatabaseWidgetStateSync::~DatabaseWidgetStateSync() = default;
|
||||
|
||||
/**
|
||||
* Sync state with persistent storage.
|
||||
|
@ -45,9 +45,7 @@ EditWidget::EditWidget(QWidget* parent)
|
||||
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)
|
||||
{
|
||||
|
@ -86,9 +86,7 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent)
|
||||
#endif
|
||||
}
|
||||
|
||||
EditWidgetIcons::~EditWidgetIcons()
|
||||
{
|
||||
}
|
||||
EditWidgetIcons::~EditWidgetIcons() = default;
|
||||
|
||||
IconStruct EditWidgetIcons::state()
|
||||
{
|
||||
|
@ -41,9 +41,7 @@ EditWidgetProperties::EditWidgetProperties(QWidget* parent)
|
||||
connect(m_ui->removeCustomDataButton, SIGNAL(clicked()), SLOT(removeSelectedPluginData()));
|
||||
}
|
||||
|
||||
EditWidgetProperties::~EditWidgetProperties()
|
||||
{
|
||||
}
|
||||
EditWidgetProperties::~EditWidgetProperties() = default;
|
||||
|
||||
void EditWidgetProperties::setFields(const TimeInfo& timeInfo, const QUuid& uuid)
|
||||
{
|
||||
|
@ -107,9 +107,7 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent)
|
||||
#endif
|
||||
}
|
||||
|
||||
EntryPreviewWidget::~EntryPreviewWidget()
|
||||
{
|
||||
}
|
||||
EntryPreviewWidget::~EntryPreviewWidget() = default;
|
||||
|
||||
void EntryPreviewWidget::clear()
|
||||
{
|
||||
|
@ -21,9 +21,7 @@
|
||||
|
||||
FileDialog* FileDialog::m_instance(nullptr);
|
||||
|
||||
FileDialog::FileDialog()
|
||||
{
|
||||
}
|
||||
FileDialog::FileDialog() = default;
|
||||
|
||||
QString FileDialog::getOpenFileName(QWidget* parent,
|
||||
const QString& caption,
|
||||
|
@ -27,9 +27,7 @@ public:
|
||||
static QFont fixedFont();
|
||||
|
||||
private:
|
||||
Font()
|
||||
{
|
||||
}
|
||||
Font() = default;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_FONT_H
|
||||
|
@ -48,9 +48,7 @@ private:
|
||||
|
||||
Icons* Icons::m_instance(nullptr);
|
||||
|
||||
Icons::Icons()
|
||||
{
|
||||
}
|
||||
Icons::Icons() = default;
|
||||
|
||||
QString Icons::applicationIconName()
|
||||
{
|
||||
|
@ -81,9 +81,7 @@ SearchWidget::SearchWidget(QWidget* parent)
|
||||
}
|
||||
}
|
||||
|
||||
SearchWidget::~SearchWidget()
|
||||
{
|
||||
}
|
||||
SearchWidget::~SearchWidget() = default;
|
||||
|
||||
bool SearchWidget::eventFilter(QObject* obj, QEvent* event)
|
||||
{
|
||||
|
@ -53,9 +53,7 @@ TotpDialog::TotpDialog(QWidget* parent, Entry* entry)
|
||||
connect(m_ui->buttonBox, SIGNAL(accepted()), SLOT(copyToClipboard()));
|
||||
}
|
||||
|
||||
TotpDialog::~TotpDialog()
|
||||
{
|
||||
}
|
||||
TotpDialog::~TotpDialog() = default;
|
||||
|
||||
void TotpDialog::copyToClipboard()
|
||||
{
|
||||
|
@ -38,9 +38,7 @@ TotpSetupDialog::TotpSetupDialog(QWidget* parent, Entry* entry)
|
||||
init();
|
||||
}
|
||||
|
||||
TotpSetupDialog::~TotpSetupDialog()
|
||||
{
|
||||
}
|
||||
TotpSetupDialog::~TotpSetupDialog() = default;
|
||||
|
||||
void TotpSetupDialog::saveSettings()
|
||||
{
|
||||
|
@ -51,9 +51,7 @@ WelcomeWidget::WelcomeWidget(QWidget* parent)
|
||||
SLOT(openDatabaseFromFile(QListWidgetItem*)));
|
||||
}
|
||||
|
||||
WelcomeWidget::~WelcomeWidget()
|
||||
{
|
||||
}
|
||||
WelcomeWidget::~WelcomeWidget() = default;
|
||||
|
||||
void WelcomeWidget::openDatabaseFromFile(QListWidgetItem* item)
|
||||
{
|
||||
|
@ -88,9 +88,7 @@ void CsvImportWidget::skippedChanged(int rows)
|
||||
updateTableview();
|
||||
}
|
||||
|
||||
CsvImportWidget::~CsvImportWidget()
|
||||
{
|
||||
}
|
||||
CsvImportWidget::~CsvImportWidget() = default;
|
||||
|
||||
void CsvImportWidget::configParser()
|
||||
{
|
||||
|
@ -29,9 +29,7 @@ CsvImportWizard::CsvImportWizard(QWidget* parent)
|
||||
connect(m_parse, SIGNAL(editFinished(bool)), this, SLOT(parseFinished(bool)));
|
||||
}
|
||||
|
||||
CsvImportWizard::~CsvImportWizard()
|
||||
{
|
||||
}
|
||||
CsvImportWizard::~CsvImportWizard() = default;
|
||||
|
||||
void CsvImportWizard::load(const QString& filename, Database* database)
|
||||
{
|
||||
|
@ -26,9 +26,7 @@ CsvParserModel::CsvParserModel(QObject* parent)
|
||||
{
|
||||
}
|
||||
|
||||
CsvParserModel::~CsvParserModel()
|
||||
{
|
||||
}
|
||||
CsvParserModel::~CsvParserModel() = default;
|
||||
|
||||
void CsvParserModel::setFilename(const QString& filename)
|
||||
{
|
||||
|
@ -43,9 +43,7 @@ KeyComponentWidget::KeyComponentWidget(QWidget* parent)
|
||||
m_ui->stackedWidget->blockSignals(prev);
|
||||
}
|
||||
|
||||
KeyComponentWidget::~KeyComponentWidget()
|
||||
{
|
||||
}
|
||||
KeyComponentWidget::~KeyComponentWidget() = default;
|
||||
|
||||
void KeyComponentWidget::setComponentAdded(bool added)
|
||||
{
|
||||
|
@ -33,9 +33,7 @@ KeyFileEditWidget::KeyFileEditWidget(DatabaseSettingsWidget* parent)
|
||||
initComponent();
|
||||
}
|
||||
|
||||
KeyFileEditWidget::~KeyFileEditWidget()
|
||||
{
|
||||
}
|
||||
KeyFileEditWidget::~KeyFileEditWidget() = default;
|
||||
|
||||
bool KeyFileEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
||||
{
|
||||
|
@ -29,9 +29,7 @@ PasswordEditWidget::PasswordEditWidget(QWidget* parent)
|
||||
initComponent();
|
||||
}
|
||||
|
||||
PasswordEditWidget::~PasswordEditWidget()
|
||||
{
|
||||
}
|
||||
PasswordEditWidget::~PasswordEditWidget() = default;
|
||||
|
||||
bool PasswordEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
||||
{
|
||||
|
@ -33,9 +33,7 @@ YubiKeyEditWidget::YubiKeyEditWidget(QWidget* parent)
|
||||
connect(YubiKey::instance(), SIGNAL(detectComplete(bool)), SLOT(hardwareKeyResponse(bool)), Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
YubiKeyEditWidget::~YubiKeyEditWidget()
|
||||
{
|
||||
}
|
||||
YubiKeyEditWidget::~YubiKeyEditWidget() = default;
|
||||
|
||||
bool YubiKeyEditWidget::addToCompositeKey(QSharedPointer<CompositeKey> key)
|
||||
{
|
||||
|
@ -122,9 +122,7 @@ DatabaseSettingsDialog::DatabaseSettingsDialog(QWidget* parent)
|
||||
pageChanged();
|
||||
}
|
||||
|
||||
DatabaseSettingsDialog::~DatabaseSettingsDialog()
|
||||
{
|
||||
}
|
||||
DatabaseSettingsDialog::~DatabaseSettingsDialog() = default;
|
||||
|
||||
void DatabaseSettingsDialog::load(const QSharedPointer<Database>& db)
|
||||
{
|
||||
|
@ -41,9 +41,7 @@ namespace Ui
|
||||
class IDatabaseSettingsPage
|
||||
{
|
||||
public:
|
||||
virtual ~IDatabaseSettingsPage()
|
||||
{
|
||||
}
|
||||
virtual ~IDatabaseSettingsPage() = default;
|
||||
virtual QString name() = 0;
|
||||
virtual QIcon icon() = 0;
|
||||
virtual QWidget* createWidget() = 0;
|
||||
|
@ -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.
|
||||
|
@ -71,9 +71,7 @@ DatabaseSettingsWidgetDatabaseKey::DatabaseSettingsWidgetDatabaseKey(QWidget* pa
|
||||
setLayout(vbox);
|
||||
}
|
||||
|
||||
DatabaseSettingsWidgetDatabaseKey::~DatabaseSettingsWidgetDatabaseKey()
|
||||
{
|
||||
}
|
||||
DatabaseSettingsWidgetDatabaseKey::~DatabaseSettingsWidgetDatabaseKey() = default;
|
||||
|
||||
void DatabaseSettingsWidgetDatabaseKey::load(QSharedPointer<Database> db)
|
||||
{
|
||||
|
@ -70,9 +70,7 @@ DatabaseSettingsWidgetEncryption::DatabaseSettingsWidgetEncryption(QWidget* pare
|
||||
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_AES_KDF(uuid) (uuid == KeePass2::KDF_AES_KDBX3 || uuid == KeePass2::KDF_AES_KDBX4)
|
||||
|
@ -33,9 +33,7 @@ DatabaseSettingsWidgetGeneral::DatabaseSettingsWidgetGeneral(QWidget* parent)
|
||||
connect(m_ui->historyMaxSizeCheckBox, SIGNAL(toggled(bool)), m_ui->historyMaxSizeSpinBox, SLOT(setEnabled(bool)));
|
||||
}
|
||||
|
||||
DatabaseSettingsWidgetGeneral::~DatabaseSettingsWidgetGeneral()
|
||||
{
|
||||
}
|
||||
DatabaseSettingsWidgetGeneral::~DatabaseSettingsWidgetGeneral() = default;
|
||||
|
||||
void DatabaseSettingsWidgetGeneral::initialize()
|
||||
{
|
||||
|
@ -42,9 +42,7 @@ DatabaseSettingsWidgetMaintenance::DatabaseSettingsWidgetMaintenance(QWidget* pa
|
||||
SLOT(selectionChanged()));
|
||||
}
|
||||
|
||||
DatabaseSettingsWidgetMaintenance::~DatabaseSettingsWidgetMaintenance()
|
||||
{
|
||||
}
|
||||
DatabaseSettingsWidgetMaintenance::~DatabaseSettingsWidgetMaintenance() = default;
|
||||
|
||||
void DatabaseSettingsWidgetMaintenance::populateIcons(QSharedPointer<Database> db)
|
||||
{
|
||||
|
@ -28,9 +28,7 @@ DatabaseSettingWidgetMetaData::DatabaseSettingWidgetMetaData(QWidget* parent)
|
||||
m_ui->setupUi(this);
|
||||
}
|
||||
|
||||
DatabaseSettingWidgetMetaData::~DatabaseSettingWidgetMetaData()
|
||||
{
|
||||
}
|
||||
DatabaseSettingWidgetMetaData::~DatabaseSettingWidgetMetaData() = default;
|
||||
|
||||
void DatabaseSettingWidgetMetaData::initialize()
|
||||
{
|
||||
|
@ -135,9 +135,7 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
|
||||
m_mainUi->passwordEdit->setQualityVisible(true);
|
||||
}
|
||||
|
||||
EditEntryWidget::~EditEntryWidget()
|
||||
{
|
||||
}
|
||||
EditEntryWidget::~EditEntryWidget() = default;
|
||||
|
||||
void EditEntryWidget::setupMain()
|
||||
{
|
||||
|
@ -75,9 +75,7 @@ EntryAttachmentsWidget::EntryAttachmentsWidget(QWidget* parent)
|
||||
updateButtonsEnabled();
|
||||
}
|
||||
|
||||
EntryAttachmentsWidget::~EntryAttachmentsWidget()
|
||||
{
|
||||
}
|
||||
EntryAttachmentsWidget::~EntryAttachmentsWidget() = default;
|
||||
|
||||
const EntryAttachments* EntryAttachmentsWidget::attachments() const
|
||||
{
|
||||
|
@ -44,9 +44,7 @@ ExportDialog::ExportDialog(QSharedPointer<const Database> db, DatabaseTabWidget*
|
||||
MessageWidget::Warning);
|
||||
}
|
||||
|
||||
ExportDialog::~ExportDialog()
|
||||
{
|
||||
}
|
||||
ExportDialog::~ExportDialog() = default;
|
||||
|
||||
QString ExportDialog::getStrategyName(ExportSortingStrategy strategy)
|
||||
{
|
||||
|
@ -112,9 +112,7 @@ EditGroupWidget::EditGroupWidget(QWidget* parent)
|
||||
setupModifiedTracking();
|
||||
}
|
||||
|
||||
EditGroupWidget::~EditGroupWidget()
|
||||
{
|
||||
}
|
||||
EditGroupWidget::~EditGroupWidget() = default;
|
||||
|
||||
void EditGroupWidget::setupModifiedTracking()
|
||||
{
|
||||
|
@ -39,9 +39,7 @@ namespace Ui
|
||||
class IEditGroupPage
|
||||
{
|
||||
public:
|
||||
virtual ~IEditGroupPage()
|
||||
{
|
||||
}
|
||||
virtual ~IEditGroupPage() = default;
|
||||
virtual QString name() = 0;
|
||||
virtual QIcon icon() = 0;
|
||||
virtual QWidget* createWidget() = 0;
|
||||
|
@ -22,9 +22,7 @@ OSUtilsBase::OSUtilsBase(QObject* parent)
|
||||
{
|
||||
}
|
||||
|
||||
OSUtilsBase::~OSUtilsBase()
|
||||
{
|
||||
}
|
||||
OSUtilsBase::~OSUtilsBase() = default;
|
||||
|
||||
bool OSUtilsBase::setPreventScreenCapture(QWindow*, bool) const
|
||||
{
|
||||
|
@ -25,6 +25,4 @@ ScreenLockListener::ScreenLockListener(QWidget* parent)
|
||||
connect(m_listener, SIGNAL(screenLocked()), this, SIGNAL(screenLocked()));
|
||||
}
|
||||
|
||||
ScreenLockListener::~ScreenLockListener()
|
||||
{
|
||||
}
|
||||
ScreenLockListener::~ScreenLockListener() = default;
|
||||
|
@ -83,9 +83,7 @@ NixUtils::NixUtils(QObject* parent)
|
||||
sessionBus.callWithCallback(msg, this, SLOT(handleColorSchemeRead(QDBusVariant)));
|
||||
}
|
||||
|
||||
NixUtils::~NixUtils()
|
||||
{
|
||||
}
|
||||
NixUtils::~NixUtils() = default;
|
||||
|
||||
bool NixUtils::isDarkMode() const
|
||||
{
|
||||
|
@ -95,9 +95,7 @@ ReportsDialog::ReportsDialog(QWidget* parent)
|
||||
connect(m_editEntryWidget, SIGNAL(editFinished(bool)), SLOT(switchToMainView(bool)));
|
||||
}
|
||||
|
||||
ReportsDialog::~ReportsDialog()
|
||||
{
|
||||
}
|
||||
ReportsDialog::~ReportsDialog() = default;
|
||||
|
||||
void ReportsDialog::load(const QSharedPointer<Database>& db)
|
||||
{
|
||||
|
@ -41,9 +41,7 @@ namespace Ui
|
||||
class IReportsPage
|
||||
{
|
||||
public:
|
||||
virtual ~IReportsPage()
|
||||
{
|
||||
}
|
||||
virtual ~IReportsPage() = default;
|
||||
virtual QString name() = 0;
|
||||
virtual QIcon icon() = 0;
|
||||
virtual QWidget* createWidget() = 0;
|
||||
|
@ -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.
|
||||
|
@ -158,9 +158,7 @@ ReportsWidgetHealthcheck::ReportsWidgetHealthcheck(QWidget* parent)
|
||||
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
|
||||
}
|
||||
|
||||
ReportsWidgetHealthcheck::~ReportsWidgetHealthcheck()
|
||||
{
|
||||
}
|
||||
ReportsWidgetHealthcheck::~ReportsWidgetHealthcheck() = default;
|
||||
|
||||
void ReportsWidgetHealthcheck::addHealthRow(QSharedPointer<PasswordHealth> health,
|
||||
Group* group,
|
||||
|
@ -79,9 +79,7 @@ ReportsWidgetHibp::ReportsWidgetHibp(QWidget* parent)
|
||||
new QShortcut(Qt::Key_Delete, this, SLOT(deleteSelectedEntries()));
|
||||
}
|
||||
|
||||
ReportsWidgetHibp::~ReportsWidgetHibp()
|
||||
{
|
||||
}
|
||||
ReportsWidgetHibp::~ReportsWidgetHibp() = default;
|
||||
|
||||
void ReportsWidgetHibp::loadSettings(QSharedPointer<Database> db)
|
||||
{
|
||||
|
@ -41,9 +41,7 @@ ReportsWidgetStatistics::ReportsWidgetStatistics(QWidget* parent)
|
||||
m_ui->statisticsTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||
}
|
||||
|
||||
ReportsWidgetStatistics::~ReportsWidgetStatistics()
|
||||
{
|
||||
}
|
||||
ReportsWidgetStatistics::~ReportsWidgetStatistics() = default;
|
||||
|
||||
void ReportsWidgetStatistics::addStatsRow(QString name, QString value, bool bad, QString badMsg)
|
||||
{
|
||||
|
@ -22,9 +22,7 @@ SettingsWidget::SettingsWidget(QWidget* parent)
|
||||
{
|
||||
}
|
||||
|
||||
SettingsWidget::~SettingsWidget()
|
||||
{
|
||||
}
|
||||
SettingsWidget::~SettingsWidget() = default;
|
||||
|
||||
/**
|
||||
* Switch between simple mode (the default) and advanced mode.
|
||||
|
@ -773,9 +773,7 @@ namespace Phantom
|
||||
static MenuItemMetrics ofFontHeight(int fontHeight);
|
||||
|
||||
private:
|
||||
MenuItemMetrics()
|
||||
{
|
||||
}
|
||||
MenuItemMetrics() = default;
|
||||
};
|
||||
|
||||
MenuItemMetrics MenuItemMetrics::ofFontHeight(int fontHeight)
|
||||
|
@ -42,9 +42,7 @@ namespace Phantom
|
||||
struct Rgb
|
||||
{
|
||||
qreal r, g, b;
|
||||
Rgb()
|
||||
{
|
||||
}
|
||||
Rgb() = default;
|
||||
Rgb(qreal r, qreal g, qreal b)
|
||||
: r(r)
|
||||
, g(g)
|
||||
@ -78,9 +76,7 @@ namespace Phantom
|
||||
struct Hsl
|
||||
{
|
||||
qreal h, s, l;
|
||||
Hsl()
|
||||
{
|
||||
}
|
||||
Hsl() = default;
|
||||
Hsl(qreal h, qreal s, qreal l)
|
||||
: h(h)
|
||||
, s(s)
|
||||
|
@ -33,9 +33,7 @@ TagModel::TagModel(QObject* parent)
|
||||
<< qMakePair(tr("Weak Passwords"), QString("is:weak"));
|
||||
}
|
||||
|
||||
TagModel::~TagModel()
|
||||
{
|
||||
}
|
||||
TagModel::~TagModel() = default;
|
||||
|
||||
void TagModel::setDatabase(QSharedPointer<Database> db)
|
||||
{
|
||||
|
@ -63,9 +63,7 @@ NewDatabaseWizard::NewDatabaseWizard(QWidget* parent)
|
||||
pageFrame->setPalette(framePalette);
|
||||
}
|
||||
|
||||
NewDatabaseWizard::~NewDatabaseWizard()
|
||||
{
|
||||
}
|
||||
NewDatabaseWizard::~NewDatabaseWizard() = default;
|
||||
|
||||
bool NewDatabaseWizard::validateCurrentPage()
|
||||
{
|
||||
|
@ -31,9 +31,7 @@ NewDatabaseWizardPage::NewDatabaseWizardPage(QWidget* parent)
|
||||
connect(m_ui->advancedSettingsButton, SIGNAL(clicked()), SLOT(toggleAdvancedSettings()));
|
||||
}
|
||||
|
||||
NewDatabaseWizardPage::~NewDatabaseWizardPage()
|
||||
{
|
||||
}
|
||||
NewDatabaseWizardPage::~NewDatabaseWizardPage() = default;
|
||||
|
||||
/**
|
||||
* Set the database settings page widget for this wizard page.
|
||||
|
@ -27,6 +27,4 @@ NewDatabaseWizardPageDatabaseKey::NewDatabaseWizardPageDatabaseKey(QWidget* pare
|
||||
setSubTitle(tr("A set of credentials known only to you that protects your database."));
|
||||
}
|
||||
|
||||
NewDatabaseWizardPageDatabaseKey::~NewDatabaseWizardPageDatabaseKey()
|
||||
{
|
||||
}
|
||||
NewDatabaseWizardPageDatabaseKey::~NewDatabaseWizardPageDatabaseKey() = default;
|
||||
|
@ -28,6 +28,4 @@ NewDatabaseWizardPageEncryption::NewDatabaseWizardPageEncryption(QWidget* parent
|
||||
"Don't worry, you can change them later in the database settings."));
|
||||
}
|
||||
|
||||
NewDatabaseWizardPageEncryption::~NewDatabaseWizardPageEncryption()
|
||||
{
|
||||
}
|
||||
NewDatabaseWizardPageEncryption::~NewDatabaseWizardPageEncryption() = default;
|
||||
|
@ -27,6 +27,4 @@ NewDatabaseWizardPageMetaData::NewDatabaseWizardPageMetaData(QWidget* parent)
|
||||
setSubTitle(tr("Please fill in the display name and an optional description for your new database:"));
|
||||
}
|
||||
|
||||
NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData()
|
||||
{
|
||||
}
|
||||
NewDatabaseWizardPageMetaData::~NewDatabaseWizardPageMetaData() = default;
|
@ -18,9 +18,7 @@
|
||||
|
||||
#include "YubiKey.h"
|
||||
|
||||
YubiKey::YubiKey()
|
||||
{
|
||||
}
|
||||
YubiKey::YubiKey() = default;
|
||||
|
||||
YubiKey* YubiKey::m_instance(Q_NULLPTR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user