mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-04 08:55:31 -05:00
Use the Uuid::LENGTH constant instead of literals.
This commit is contained in:
parent
9f0c3e5411
commit
8b5dcc7bee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user