Mark constructors as explicit.

This commit is contained in:
Felix Geyer 2010-08-14 12:28:52 +02:00
parent 01694c3271
commit d8b21c8b04
4 changed files with 6 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class Metadata : public QObject
Q_OBJECT
public:
Metadata(Database* parent);
explicit Metadata(Database* parent);
QString generator() const;
QString name() const;

View File

@ -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();

View File

@ -17,6 +17,8 @@
#include "Uuid.h"
#include <QtCore/QHash>
const int Uuid::length = 16;
Uuid::Uuid() : m_data(length, 0)

View File

@ -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;