Remove use of ToQStr to convert rdctype::str to QString

This commit is contained in:
baldurk
2017-08-18 14:13:22 +01:00
parent b637fe78de
commit 4c24b0f28f
26 changed files with 381 additions and 403 deletions
@@ -195,7 +195,8 @@ void PersistantConfig::AddAndroidHosts()
rdctype::str androidHosts;
RENDERDOC_EnumerateAndroidDevices(&androidHosts);
for(const QString &hostName : ToQStr(androidHosts).split(QLatin1Char(','), QString::SkipEmptyParts))
for(const QString &hostName :
QString(androidHosts).split(QLatin1Char(','), QString::SkipEmptyParts))
{
RemoteHost *host = NULL;
@@ -207,7 +208,7 @@ void PersistantConfig::AddAndroidHosts()
host->Hostname = hostName;
rdctype::str friendly;
RENDERDOC_GetAndroidFriendlyName(hostName.toUtf8().data(), friendly);
host->FriendlyName = ToQStr(friendly);
host->FriendlyName = friendly;
// Just a command to display in the GUI and allow Launch() to be called.
host->RunCommand = lit("org.renderdoc.renderdoccmd");
RemoteHosts.push_back(host);