Use the Uuid::LENGTH constant instead of literals.

This commit is contained in:
Felix Geyer 2010-09-23 00:19:02 +02:00
parent 9f0c3e5411
commit 8b5dcc7bee

View File

@ -30,13 +30,13 @@ Uuid::Uuid()
Uuid::Uuid(const QByteArray& data)
{
Q_ASSERT(data.size() == 16);
Q_ASSERT(data.size() == LENGTH);
m_data = data;
}
Uuid Uuid::random() {
return Uuid(Random::randomArray(16));
return Uuid(Random::randomArray(LENGTH));
}
QString Uuid::toBase64() const