Fix warning: "Missing reference in range-for with non trivial type"

[-Wclazy-range-loop]

Change-Id: I5dcb263c754d423740e7bce3dcb948d52f2dec67
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2019-01-16 14:47:24 +01:00
parent 7f641d3c08
commit 128a33548b
14 changed files with 16 additions and 15 deletions

View File

@@ -781,7 +781,8 @@ bool DebuggerRunTool::fixupParameters()
rp.symbolFile = rp.inferior.executable;
// Copy over DYLD_IMAGE_SUFFIX etc
for (auto var : QStringList({"DYLD_IMAGE_SUFFIX", "DYLD_LIBRARY_PATH", "DYLD_FRAMEWORK_PATH"}))
for (const auto &var :
QStringList({"DYLD_IMAGE_SUFFIX", "DYLD_LIBRARY_PATH", "DYLD_FRAMEWORK_PATH"}))
if (rp.inferior.environment.hasKey(var))
rp.debugger.environment.set(var, rp.inferior.environment.value(var));