mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refs #937 Resolved clazy warnings: QString::arg.
This commit is contained in:
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
|
||||
port = cmdlineArgs.at(cmdlineArgs.length() - 1);
|
||||
}
|
||||
}
|
||||
QString addressTcp = QString("tcp:host=%1,port=%2").arg(ip).arg(port);
|
||||
QString addressTcp = QString("tcp:host=%1,port=%2").arg(ip, port);
|
||||
QString address(useSessionBusForServer ? "session" : addressTcp); // testing with real transfer
|
||||
|
||||
// Create a Testservice instance and register it with the session bus only if
|
||||
@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
||||
if (mode.startsWith("l"))
|
||||
{
|
||||
ip = "127.0.0.1";
|
||||
addressTcp = QString("tcp:host=%1,port=%2").arg(ip).arg(port);
|
||||
addressTcp = QString("tcp:host=%1,port=%2").arg(ip, port);
|
||||
goto Menu;
|
||||
}
|
||||
if (mode.startsWith("i"))
|
||||
@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
|
||||
if (p.length() > 1)
|
||||
{
|
||||
ip = p.at(1);
|
||||
addressTcp = QString("tcp:host=%1,port=%2").arg(ip).arg(port);
|
||||
addressTcp = QString("tcp:host=%1,port=%2").arg(ip, port);
|
||||
}
|
||||
goto Menu;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
||||
if (p.length() > 1)
|
||||
{
|
||||
port = p.at(1);
|
||||
addressTcp = QString("tcp:host=%1,port=%2").arg(ip).arg(port);
|
||||
addressTcp = QString("tcp:host=%1,port=%2").arg(ip, port);
|
||||
}
|
||||
goto Menu;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user