From 8b5dcc7bee505078f240fcf1b01ae05104b508c7 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 23 Sep 2010 00:19:02 +0200 Subject: [PATCH] Use the Uuid::LENGTH constant instead of literals. --- src/core/Uuid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Uuid.cpp b/src/core/Uuid.cpp index 1c7649747..e2ba90cb4 100644 --- a/src/core/Uuid.cpp +++ b/src/core/Uuid.cpp @@ -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