Coding style improvements.

This commit is contained in:
Felix Geyer 2012-05-14 19:10:42 +02:00
parent 924130e0fe
commit a407e0082b
16 changed files with 42 additions and 42 deletions

View file

@ -21,22 +21,22 @@
#include "crypto/Random.h"
const int Uuid::LENGTH = 16;
const int Uuid::Length = 16;
Uuid::Uuid()
: m_data(LENGTH, 0)
: m_data(Length, 0)
{
}
Uuid::Uuid(const QByteArray& data)
{
Q_ASSERT(data.size() == LENGTH);
Q_ASSERT(data.size() == Length);
m_data = data;
}
Uuid Uuid::random() {
return Uuid(Random::randomArray(LENGTH));
return Uuid(Random::randomArray(Length));
}
QString Uuid::toBase64() const
@ -97,7 +97,7 @@ QDataStream& operator>>(QDataStream& stream, Uuid& uuid)
{
QByteArray data;
stream >> data;
if (data.size() == Uuid::LENGTH) {
if (data.size() == Uuid::Length) {
uuid = Uuid(data);
}