mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
Always convert explicitly from QByteArray to QString.
This commit is contained in:
parent
d0016bf6c4
commit
b0ad864fe0
@ -41,12 +41,12 @@ Uuid Uuid::random() {
|
|||||||
|
|
||||||
QString Uuid::toBase64() const
|
QString Uuid::toBase64() const
|
||||||
{
|
{
|
||||||
return m_data.toBase64();
|
return QString::fromAscii(m_data.toBase64());
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Uuid::toHex() const
|
QString Uuid::toHex() const
|
||||||
{
|
{
|
||||||
return m_data.toHex();
|
return QString::fromAscii(m_data.toHex());
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray Uuid::toByteArray() const
|
QByteArray Uuid::toByteArray() const
|
||||||
|
@ -295,7 +295,7 @@ void TestKeePass2XmlReader::testEntry2()
|
|||||||
QVERIFY(attrs.isEmpty());
|
QVERIFY(attrs.isEmpty());
|
||||||
|
|
||||||
QCOMPARE(entry->attachments()->keys().size(), 1);
|
QCOMPARE(entry->attachments()->keys().size(), 1);
|
||||||
QCOMPARE(QString(entry->attachments()->value("myattach.txt")), QString("abcdefghijk"));
|
QCOMPARE(QString::fromAscii(entry->attachments()->value("myattach.txt")), QString("abcdefghijk"));
|
||||||
|
|
||||||
QCOMPARE(entry->autoTypeEnabled(), true);
|
QCOMPARE(entry->autoTypeEnabled(), true);
|
||||||
QCOMPARE(entry->autoTypeObfuscation(), 1);
|
QCOMPARE(entry->autoTypeObfuscation(), 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user