forked from qt-creator/qt-creator
Use Utils::FilePath in SynchronousProcess
Adapt callers and surrounding code. Change-Id: Ie6c1883a44169cf9d790d06b660f46d24dc24c89 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -442,15 +442,6 @@ static bool isGuiThread()
|
||||
return QThread::currentThread() == QCoreApplication::instance()->thread();
|
||||
}
|
||||
|
||||
SynchronousProcessResponse SynchronousProcess::run(const QString &binary,
|
||||
const QStringList &args,
|
||||
const QByteArray &writeData)
|
||||
{
|
||||
CommandLine cmd(FilePath::fromString(binary), {});
|
||||
cmd.addArgs(args);
|
||||
return run(cmd, writeData);
|
||||
}
|
||||
|
||||
SynchronousProcessResponse SynchronousProcess::run(const CommandLine &cmd,
|
||||
const QByteArray &writeData)
|
||||
{
|
||||
@@ -506,14 +497,6 @@ SynchronousProcessResponse SynchronousProcess::run(const CommandLine &cmd,
|
||||
return d->m_result;
|
||||
}
|
||||
|
||||
SynchronousProcessResponse
|
||||
SynchronousProcess::runBlocking(const QString &binary, const QStringList &args)
|
||||
{
|
||||
CommandLine cmd(FilePath::fromString(binary), {});
|
||||
cmd.addArgs(args);
|
||||
return runBlocking(cmd);
|
||||
}
|
||||
|
||||
SynchronousProcessResponse SynchronousProcess::runBlocking(const CommandLine &cmd)
|
||||
{
|
||||
d->clearForRun();
|
||||
|
||||
Reference in New Issue
Block a user