forked from qt-creator/qt-creator
Replace a few occurrences of QStringList() << ...
... by something shorter. Change-Id: I363b4e509adb07997517b2d233246a333aea4aea Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -136,9 +136,7 @@ Utils::Port IosSimulator::nextPort() const
|
||||
QProcess portVerifier;
|
||||
// this is a bit too broad (it does not check just listening sockets, but also connections
|
||||
// to that port from this computer)
|
||||
portVerifier.start(QLatin1String("lsof"), QStringList() << QLatin1String("-n")
|
||||
<< QLatin1String("-P") << QLatin1String("-i")
|
||||
<< QString::fromLatin1(":%1").arg(m_lastPort));
|
||||
portVerifier.start(QLatin1String("lsof"), {"-n", "-P", "-i", QString(":%1").arg(m_lastPort) });
|
||||
if (!portVerifier.waitForStarted())
|
||||
break;
|
||||
portVerifier.closeWriteChannel();
|
||||
|
||||
Reference in New Issue
Block a user