Standardize on QString::toUtf8()
This commit is contained in:
parent
8c9c799f81
commit
792f762c15
4 changed files with 9 additions and 9 deletions
|
|
@ -1633,8 +1633,8 @@ bool Session::startConnectionAsync()
|
|||
return false;
|
||||
}
|
||||
|
||||
QByteArray hostnameStr = m_Computer->activeAddress.address().toLatin1();
|
||||
QByteArray siAppVersion = m_Computer->appVersion.toLatin1();
|
||||
QByteArray hostnameStr = m_Computer->activeAddress.address().toUtf8();
|
||||
QByteArray siAppVersion = m_Computer->appVersion.toUtf8();
|
||||
|
||||
SERVER_INFORMATION hostInfo;
|
||||
hostInfo.address = hostnameStr.data();
|
||||
|
|
@ -1644,7 +1644,7 @@ bool Session::startConnectionAsync()
|
|||
// Older GFE versions didn't have this field
|
||||
QByteArray siGfeVersion;
|
||||
if (!m_Computer->gfeVersion.isEmpty()) {
|
||||
siGfeVersion = m_Computer->gfeVersion.toLatin1();
|
||||
siGfeVersion = m_Computer->gfeVersion.toUtf8();
|
||||
}
|
||||
if (!siGfeVersion.isEmpty()) {
|
||||
hostInfo.serverInfoGfeVersion = siGfeVersion.data();
|
||||
|
|
@ -1653,7 +1653,7 @@ bool Session::startConnectionAsync()
|
|||
// Older GFE and Sunshine versions didn't have this field
|
||||
QByteArray rtspSessionUrlStr;
|
||||
if (!rtspSessionUrl.isEmpty()) {
|
||||
rtspSessionUrlStr = rtspSessionUrl.toLatin1();
|
||||
rtspSessionUrlStr = rtspSessionUrl.toUtf8();
|
||||
hostInfo.rtspSessionUrl = rtspSessionUrlStr.data();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue