Skip to content
Permalink
Browse files

Replace use of qSort with std::sort

  • Loading branch information
nyalldawson committed Sep 5, 2017
1 parent 422963e commit 84774ee2ded210c1dab7b6ea46eacd0d5cb1cbbf
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/nodetool/qgsnodetool.cpp
  2. +1 −1 src/core/qgsexpressionsorter.h
@@ -1601,7 +1601,7 @@ void QgsNodeTool::deleteVertex()
QList<int> &vertexIds = it2.value();

bool res = QgsVectorLayer::Success;
qSort( vertexIds.begin(), vertexIds.end(), qGreater<int>() );
std::sort( vertexIds.begin(), vertexIds.end(), std::greater<int>() );
Q_FOREACH ( int vertexId, vertexIds )
{
if ( res != QgsVectorLayer::EmptyGeometry )
@@ -160,7 +160,7 @@ class QgsExpressionSorter

delete expressionContext->popScope();

qSort( indexedFeatures.begin(), indexedFeatures.end(), *this );
std::sort( indexedFeatures.begin(), indexedFeatures.end(), *this );

features.clear();

0 comments on commit 84774ee

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