QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński
2015-12-15 06:58:54 +01:00
committed by wmayer
parent e55ba2d24d
commit d5c074f80d
61 changed files with 191 additions and 191 deletions

View File

@@ -68,7 +68,7 @@ std::string Uuid::createUuid(void)
QString uuid = QUuid::createUuid().toString();
uuid = uuid.mid(1);
uuid.chop(1);
Uuid = (const char*)uuid.toAscii();
Uuid = (const char*)uuid.toLatin1();
return Uuid;
}
@@ -82,7 +82,7 @@ void Uuid::setValue(const char* sString)
QString id = uuid.toString();
id = id.mid(1);
id.chop(1);
_uuid = (const char*)id.toAscii();
_uuid = (const char*)id.toLatin1();
}
}