mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-28 17:24:17 -04:00
Add a bunch of new Parser testcases.
This commit is contained in:
parent
542ecd41d1
commit
cd26e9d474
4 changed files with 531 additions and 78 deletions
|
@ -70,6 +70,12 @@ bool Uuid::operator!=(const Uuid& other) const
|
|||
return !operator==(other);
|
||||
}
|
||||
|
||||
Uuid Uuid::fromBase64(const QString& str)
|
||||
{
|
||||
QByteArray data = QByteArray::fromBase64(str.toAscii());
|
||||
return Uuid(data);
|
||||
}
|
||||
|
||||
uint qHash(const Uuid& key)
|
||||
{
|
||||
return qHash(key.toByteArray());
|
||||
|
|
|
@ -33,6 +33,7 @@ public:
|
|||
bool operator==(const Uuid& other) const;
|
||||
bool operator!=(const Uuid& other) const;
|
||||
static const int length;
|
||||
static Uuid fromBase64(const QString& str);
|
||||
|
||||
private:
|
||||
QByteArray m_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue