Skip to content
Permalink
Browse files

Nicer code

  • Loading branch information
nyalldawson committed Dec 27, 2019
1 parent df2debc commit 5ecc8d5cc3b9e6fd7a40b43ff8c72cab85d6b52b
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/pal/pal.cpp
@@ -369,10 +369,10 @@ std::unique_ptr<Problem> Pal::extract( const QgsRectangle &extent, const QgsGeom
prob->mTotalCandidates += static_cast< int >( feat->candidates.size() );

// add all candidates into a rtree (to speed up conflicts searching)
for ( std::size_t j = 0; j < feat->candidates.size(); j++, idlp++ )
for ( std::unique_ptr< LabelPosition > &candidate : feat->candidates )
{
feat->candidates[ j ]->insertIntoIndex( prob->allCandidatesIndex() );
feat->candidates[ j ]->setProblemIds( static_cast< int >( i ), idlp );
candidate->insertIntoIndex( prob->allCandidatesIndex() );
candidate->setProblemIds( static_cast< int >( i ), idlp++ );
}
features.emplace_back( std::move( feat ) );
}

0 comments on commit 5ecc8d5

Please sign in to comment.
You can’t perform that action at this time.