mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-10-15 15:00:58 -04:00
Use QString::toLatin1() rather than ::toAscii()
The toAscii (and fromAscii) are removed from Qt5 in favor of Latin1.
This commit is contained in:
parent
03e4b2d13c
commit
66b3d22041
7 changed files with 16 additions and 16 deletions
|
@ -42,12 +42,12 @@ Uuid Uuid::random()
|
|||
|
||||
QString Uuid::toBase64() const
|
||||
{
|
||||
return QString::fromAscii(m_data.toBase64());
|
||||
return QString::fromLatin1(m_data.toBase64());
|
||||
}
|
||||
|
||||
QString Uuid::toHex() const
|
||||
{
|
||||
return QString::fromAscii(m_data.toHex());
|
||||
return QString::fromLatin1(m_data.toHex());
|
||||
}
|
||||
|
||||
QByteArray Uuid::toByteArray() const
|
||||
|
@ -85,7 +85,7 @@ bool Uuid::operator!=(const Uuid& other) const
|
|||
|
||||
Uuid Uuid::fromBase64(const QString& str)
|
||||
{
|
||||
QByteArray data = QByteArray::fromBase64(str.toAscii());
|
||||
QByteArray data = QByteArray::fromBase64(str.toLatin1());
|
||||
return Uuid(data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue