mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 15:29:44 -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
|
||||
{
|
||||
return m_data.toBase64();
|
||||
return QString::fromAscii(m_data.toBase64());
|
||||
}
|
||||
|
||||
QString Uuid::toHex() const
|
||||
{
|
||||
return m_data.toHex();
|
||||
return QString::fromAscii(m_data.toHex());
|
||||
}
|
||||
|
||||
QByteArray Uuid::toByteArray() const
|
||||
|
@ -295,7 +295,7 @@ void TestKeePass2XmlReader::testEntry2()
|
||||
QVERIFY(attrs.isEmpty());
|
||||
|
||||
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->autoTypeObfuscation(), 1);
|
||||
|
Loading…
Reference in New Issue
Block a user