Skip to content

Commit 30f86e6

Browse files
committedJul 7, 2017
Local variables should not be prefixed
1 parent 0e19995 commit 30f86e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎src/core/qgssnappingutils.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,21 @@ static QgsPointLocator::Match _findClosestSegmentIntersection( const QgsPointXY
164164
}
165165

166166

167-
static void _replaceIfBetter( QgsPointLocator::Match &mBest, const QgsPointLocator::Match &mNew, double maxDistance )
167+
static void _replaceIfBetter( QgsPointLocator::Match &bestMatch, const QgsPointLocator::Match &candidateMatch, double maxDistance )
168168
{
169-
// is other match relevant?
170-
if ( !mNew.isValid() || mNew.distance() > maxDistance )
169+
// is candidate match relevant?
170+
if ( !candidateMatch.isValid() || candidateMatch.distance() > maxDistance )
171171
return;
172172

173-
// is other match actually better?
174-
if ( mBest.isValid() && mBest.type() == mNew.type() && mBest.distance() - 10e-6 < mNew.distance() )
173+
// is candidate match actually better?
174+
if ( bestMatch.isValid() && bestMatch.type() == candidateMatch.type() && bestMatch.distance() - 10e-6 < candidateMatch.distance() )
175175
return;
176176

177-
// prefer vertex matches to edge matches (even if they are closer)
178-
if ( mBest.type() == QgsPointLocator::Vertex && mNew.type() == QgsPointLocator::Edge )
177+
// prefer vertex matches over edge matches (even if they are closer)
178+
if ( bestMatch.type() == QgsPointLocator::Vertex && candidateMatch.type() == QgsPointLocator::Edge )
179179
return;
180180

181-
mBest = mNew; // the other match is better!
181+
bestMatch = candidateMatch; // the other match is better!
182182
}
183183

184184

0 commit comments

Comments
 (0)
Please sign in to comment.