Commit 6e28e7f0 authored by hjk's avatar hjk
Browse files

Qnx: Fix comparison of iterators from different containers

.begin() and .end() were coming from different temporaries.

Change-Id: I26a716653b906d0a63aab464f66b16ede7285214
Reviewed-by: default avatarDavid Schulz <>
parent aded97cd
......@@ -57,7 +57,8 @@ QString QnxDeviceProcess::fullCommandLine() const
if (!m_workingDir.isEmpty())
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 & echo $! > %2").arg(cmd).arg(m_pidFile);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment