diff options
author | Alessandro Portale <[email protected]> | 2019-01-16 14:47:24 +0100 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2019-01-16 20:22:56 +0000 |
commit | 128a33548badc3cdc1b5658e31115d4a4db95135 (patch) | |
tree | d1a97b11e0aeb3a740816cb4f97c2a2428325ab4 /src/plugins/debugger/debuggerruncontrol.cpp | |
parent | 7f641d3c08b91675b6475c8dee968b072bc3a881 (diff) |
Fix warning: "Missing reference in range-for with non trivial type"
[-Wclazy-range-loop]
Change-Id: I5dcb263c754d423740e7bce3dcb948d52f2dec67
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerruncontrol.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerruncontrol.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp index 7c2bc7ec196..c08e5ea471e 100644 --- a/src/plugins/debugger/debuggerruncontrol.cpp +++ b/src/plugins/debugger/debuggerruncontrol.cpp @@ -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)); |