Skip to content

Commit

Permalink
Const iterator usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed May 12, 2020
1 parent 9864298 commit 5fea13d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions io/EptReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ void EptReader::ready(PointTableRef table)
else
{
int count = 4;
auto m_hierarchyIter = m_hierarchy->begin();
while (m_hierarchyIter != m_hierarchy->end() && count)
auto m_hierarchyIter = m_hierarchy->cbegin();
while (m_hierarchyIter != m_hierarchy->cend() && count)
{
load(*m_hierarchyIter++);
count--;
Expand Down Expand Up @@ -723,7 +723,7 @@ bool EptReader::processOne(PointRef& point)
{
m_currentTile = &m_contents.front();
l.unlock();
if (m_hierarchyIter != m_hierarchy->end())
if (m_hierarchyIter != m_hierarchy->cend())
load(*m_hierarchyIter++);
break;
}
Expand Down

0 comments on commit 5fea13d

Please sign in to comment.