RemoteLinux: Reuse StringUtils::joinStrings()

Change-Id: I5be99df99a4b3952374b9f3b719d032d897b691c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2023-02-03 11:54:23 +01:00
parent 5d96c3a4e9
commit 0d0ce383be

View File

@@ -640,11 +640,8 @@ void LinuxProcessInterface::handleDone(const ProcessResultData &resultData)
ProcessResultData finalData = resultData;
if (!m_pidParsed) {
finalData.m_error = QProcess::FailedToStart;
if (!m_error.isEmpty()) {
if (!finalData.m_errorString.isEmpty())
finalData.m_errorString += "\n";
finalData.m_errorString += QString::fromLocal8Bit(m_error);
}
finalData.m_errorString = Utils::joinStrings({finalData.m_errorString,
QString::fromLocal8Bit(m_error)}, '\n');
}
emit done(finalData);
}