forked from qt-creator/qt-creator
Qnx: Fix comparison of iterators from different containers
.begin() and .end() were coming from different temporaries. Change-Id: I26a716653b906d0a63aab464f66b16ede7285214 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -57,7 +57,8 @@ QString QnxDeviceProcess::fullCommandLine() const
|
|||||||
if (!m_workingDir.isEmpty())
|
if (!m_workingDir.isEmpty())
|
||||||
fullCommandLine += QString::fromLatin1("cd %1 ; ").arg(QtcProcess::quoteArg(m_workingDir));
|
fullCommandLine += QString::fromLatin1("cd %1 ; ").arg(QtcProcess::quoteArg(m_workingDir));
|
||||||
|
|
||||||
for (auto it = environment().constBegin(); it != environment().constEnd(); ++it)
|
const Environment env = environment();
|
||||||
|
for (auto it = env.constBegin(); it != env.constEnd(); ++it)
|
||||||
fullCommandLine += QString::fromLatin1("%1='%2' ").arg(it.key()).arg(it.value());
|
fullCommandLine += QString::fromLatin1("%1='%2' ").arg(it.key()).arg(it.value());
|
||||||
|
|
||||||
fullCommandLine += QString::fromLatin1("%1 & echo $! > %2").arg(cmd).arg(m_pidFile);
|
fullCommandLine += QString::fromLatin1("%1 & echo $! > %2").arg(cmd).arg(m_pidFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user