mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:10:04 +00:00
Use references in ar2v_file where appropriate
This commit is contained in:
parent
233246a87e
commit
b1a4fd4381
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue