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