Use upper case names for constants.

This commit is contained in:
Felix Geyer 2010-09-05 11:46:36 +02:00
parent 1cfc34361a
commit f5dd24fdbe
3 changed files with 4 additions and 4 deletions

View File

@ -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)
{
}

View File

@ -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:

View File

@ -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();
}