mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 10:40:59 +00:00
Standardize on QString::toUtf8()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user