Skip to content

Commit

Permalink
Use upper case names for constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
debfx committed Sep 5, 2010
1 parent 1cfc343 commit f5dd24f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/Uuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/Uuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Uuid
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:
Expand Down
2 changes: 1 addition & 1 deletion src/format/KeePass2XmlReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f5dd24f

Please sign in to comment.