mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Use upper case names for constants.
This commit is contained in:
parent
1cfc34361a
commit
f5dd24fdbe
@ -19,10 +19,10 @@
|
||||
|
||||
#include <QtCore/QHash>
|
||||
|
||||
const int Uuid::length = 16;
|
||||
const int Uuid::LENGTH = 16;
|
||||
|
||||
Uuid::Uuid()
|
||||
: m_data(length, 0)
|
||||
: m_data(LENGTH, 0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
bool isNull() const;
|
||||
bool operator==(const Uuid& other) const;
|
||||
bool operator!=(const Uuid& other) const;
|
||||
static const int length;
|
||||
static const int LENGTH;
|
||||
static Uuid fromBase64(const QString& str);
|
||||
|
||||
private:
|
||||
|
@ -696,7 +696,7 @@ int KeePass2XmlReader::readNumber()
|
||||
Uuid KeePass2XmlReader::readUuid()
|
||||
{
|
||||
QByteArray uuidBin = readBinary();
|
||||
if (uuidBin.length() != Uuid::length) {
|
||||
if (uuidBin.length() != Uuid::LENGTH) {
|
||||
raiseError();
|
||||
return Uuid();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user