forked from qt-creator/qt-creator
Utils: Drop QProcess specific parameters from QtcProcess::finished()
Mid-term plan is to concentrate on use of QtcProcess::result() instead which is a bit more system-agnostic. There's quite a bit of potential for downstream cleanup by re-using QtcProcess::exitMessage() now. Change-Id: I3806b3f5933d96e64b7cfb18cc6c52823fddcbcd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -166,7 +166,9 @@ void MesonProcess::setupProcess(const Command &command,
|
||||
if (m_process)
|
||||
disconnect(m_process.get());
|
||||
m_process = std::make_unique<Utils::QtcProcess>();
|
||||
connect(m_process.get(), &QtcProcess::finished, this, &MesonProcess::handleProcessFinished);
|
||||
connect(m_process.get(), &QtcProcess::finished, this, [this] {
|
||||
handleProcessFinished(m_process->exitCode(), m_process->exitStatus());
|
||||
});
|
||||
connect(m_process.get(), &QtcProcess::errorOccurred, this, &MesonProcess::handleProcessError);
|
||||
if (!captureStdo) {
|
||||
connect(m_process.get(),
|
||||
|
||||
Reference in New Issue
Block a user