mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-09 06:52:50 -04:00
Use C++11 keyword directly in new methods.
This commit is contained in:
parent
71d4cb781d
commit
bfae81ec70
4 changed files with 6 additions and 6 deletions
|
@ -25,13 +25,13 @@
|
||||||
#include "format/KeePass2XmlReader.h"
|
#include "format/KeePass2XmlReader.h"
|
||||||
|
|
||||||
KeePass2Repair::KeePass2Repair()
|
KeePass2Repair::KeePass2Repair()
|
||||||
: m_db(Q_NULLPTR)
|
: m_db(nullptr)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
KeePass2Repair::RepairResult KeePass2Repair::repairDatabase(QIODevice* device, const CompositeKey& key)
|
KeePass2Repair::RepairResult KeePass2Repair::repairDatabase(QIODevice* device, const CompositeKey& key)
|
||||||
{
|
{
|
||||||
m_db = Q_NULLPTR;
|
m_db = nullptr;
|
||||||
m_errorStr.clear();
|
m_errorStr.clear();
|
||||||
|
|
||||||
KeePass2Reader reader;
|
KeePass2Reader reader;
|
||||||
|
|
|
@ -25,14 +25,14 @@ class DatabaseRepairWidget : public DatabaseOpenWidget
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit DatabaseRepairWidget(QWidget* parent = Q_NULLPTR);
|
explicit DatabaseRepairWidget(QWidget* parent = nullptr);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void success();
|
void success();
|
||||||
void error();
|
void error();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void openDatabase() Q_DECL_OVERRIDE;
|
void openDatabase() override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void processEditFinished(bool result);
|
void processEditFinished(bool result);
|
||||||
|
|
|
@ -102,7 +102,7 @@ Q_SIGNALS:
|
||||||
void entryColumnSizesChanged();
|
void entryColumnSizesChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject* object, QEvent* event) Q_DECL_OVERRIDE;
|
bool eventFilter(QObject* object, QEvent* event) override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void createEntry();
|
void createEntry();
|
||||||
|
|
|
@ -623,7 +623,7 @@ void MainWindow::repairDatabase()
|
||||||
if (dialog->exec() == QDialog::Accepted && dbRepairWidget->database()) {
|
if (dialog->exec() == QDialog::Accepted && dbRepairWidget->database()) {
|
||||||
QString saveFileName = fileDialog()->getSaveFileName(this, tr("Save repaired database"), QString(),
|
QString saveFileName = fileDialog()->getSaveFileName(this, tr("Save repaired database"), QString(),
|
||||||
tr("KeePass 2 Database").append(" (*.kdbx)"),
|
tr("KeePass 2 Database").append(" (*.kdbx)"),
|
||||||
Q_NULLPTR, 0, "kdbx");
|
nullptr, 0, "kdbx");
|
||||||
|
|
||||||
if (!saveFileName.isEmpty()) {
|
if (!saveFileName.isEmpty()) {
|
||||||
KeePass2Writer writer;
|
KeePass2Writer writer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue