From b1a4fd4381f7b3a9ed9ebd09d8e318afafeeb85b Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Mon, 22 Jan 2024 20:05:25 -0600 Subject: [PATCH] Use references in ar2v_file where appropriate --- wxdata/source/scwx/wsr88d/ar2v_file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wxdata/source/scwx/wsr88d/ar2v_file.cpp b/wxdata/source/scwx/wsr88d/ar2v_file.cpp index 07961562..5c563eb2 100644 --- a/wxdata/source/scwx/wsr88d/ar2v_file.cpp +++ b/wxdata/source/scwx/wsr88d/ar2v_file.cpp @@ -148,12 +148,12 @@ Ar2vFile::GetElevationScan(rda::DataBlockType dataBlockType, if (p->index_.contains(dataBlockType)) { - auto scans = p->index_.at(dataBlockType); + auto& scans = p->index_.at(dataBlockType); std::uint16_t lowerBound = scans.cbegin()->first; std::uint16_t upperBound = scans.crbegin()->first; - for (auto scan : scans) + for (auto& scan : scans) { if (scan.first > lowerBound && scan.first <= codedElevation) {