Mark some constructor as explicit.

This commit is contained in:
Felix Geyer
2012-01-11 19:18:35 +01:00
parent 6422dee4fc
commit 279585fff4
10 changed files with 13 additions and 11 deletions

View File

@@ -20,7 +20,7 @@
#include "crypto/CryptoHash.h"
#include "format/KeePass2.h"
KeePass2RandomStream::KeePass2RandomStream(QByteArray key)
KeePass2RandomStream::KeePass2RandomStream(const QByteArray& key)
: m_cipher(SymmetricCipher::Salsa20, SymmetricCipher::Stream, SymmetricCipher::Encrypt,
CryptoHash::hash(key, CryptoHash::Sha256), KeePass2::INNER_STREAM_SALSA20_IV)
, m_offset(0)

View File

@@ -25,7 +25,7 @@
class KeePass2RandomStream
{
public:
KeePass2RandomStream(QByteArray key);
explicit KeePass2RandomStream(const QByteArray& key);
QByteArray randomBytes(int size);
QByteArray process(const QByteArray& data);
void processInPlace(QByteArray& data);

View File

@@ -27,7 +27,7 @@ class QIODevice;
class KeePass2Reader
{
Q_DECLARE_TR_FUNCTIONS(KeePass2Reader);
Q_DECLARE_TR_FUNCTIONS(KeePass2Reader)
public:
KeePass2Reader();

View File

@@ -35,7 +35,7 @@ class Metadata;
class KeePass2XmlReader
{
Q_DECLARE_TR_FUNCTIONS(KeePass2XmlReader);
Q_DECLARE_TR_FUNCTIONS(KeePass2XmlReader)
public:
KeePass2XmlReader();