forked from organicmaps/organicmaps
Correct using of CheckUniqueIndexes.
This commit is contained in:
parent
430750d9bf
commit
8d085a0b88
1 changed files with 6 additions and 1 deletions
|
@ -75,7 +75,12 @@ private:
|
|||
{
|
||||
CheckUniqueIndexes checkUnique(m_value.GetHeader().GetFormat() >= version::Format::v5);
|
||||
for (auto const & i : intervals)
|
||||
m_index.ForEachInIntervalAndScale([&] (uint32_t index) { fn(index); }, i.first, i.second, scale);
|
||||
m_index.ForEachInIntervalAndScale(
|
||||
[&] (uint32_t index)
|
||||
{
|
||||
if (checkUnique(index))
|
||||
fn(index);
|
||||
}, i.first, i.second, scale);
|
||||
}
|
||||
|
||||
DISALLOW_COPY_AND_MOVE(MwmContext);
|
||||
|
|
Loading…
Add table
Reference in a new issue