refactor: use reference in for-range loops

Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-04 14:39:18 +00:00
committed by Compute-Runtime-Automation
parent 6eae5db63e
commit 95eb5df978
2 changed files with 2 additions and 2 deletions

View File

@@ -1767,7 +1767,7 @@ ze_result_t DebugSessionLinux::getElfOffset(const zet_debug_memory_space_desc_t
if (elfMap.size() > 0) {
uint64_t baseVa;
uint64_t ceilVa;
for (auto elf : elfMap) {
for (auto &elf : elfMap) {
baseVa = elf.first;
ceilVa = elf.first + clientHandleToConnection[clientHandle]->uuidMap[elf.second].dataSize;
if (accessVA >= baseVa && accessVA < ceilVa) {