mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Use the Uuid::LENGTH constant instead of literals.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user