mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Mark constructors as explicit.
This commit is contained in:
parent
01694c3271
commit
d8b21c8b04
@ -32,7 +32,7 @@ class Metadata : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Metadata(Database* parent);
|
||||
explicit Metadata(Database* parent);
|
||||
|
||||
QString generator() const;
|
||||
QString name() const;
|
||||
|
@ -35,7 +35,7 @@ class Parser : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Parser(Database* db);
|
||||
explicit Parser(Database* db);
|
||||
bool parse(const QString& filename);
|
||||
QString errorMsg();
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
#include "Uuid.h"
|
||||
|
||||
#include <QtCore/QHash>
|
||||
|
||||
const int Uuid::length = 16;
|
||||
|
||||
Uuid::Uuid() : m_data(length, 0)
|
||||
|
@ -25,8 +25,8 @@ class Uuid
|
||||
{
|
||||
public:
|
||||
Uuid();
|
||||
Uuid(bool generate);
|
||||
Uuid(const QByteArray& data);
|
||||
explicit Uuid(bool generate);
|
||||
explicit Uuid(const QByteArray& data);
|
||||
QString toBase64() const;
|
||||
QByteArray toByteArray() const;
|
||||
bool isNull() const;
|
||||
|
Loading…
Reference in New Issue
Block a user