Skip to content

Commit 84774ee

Browse files
committed
Replace use of qSort with std::sort
1 parent 422963e commit 84774ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/nodetool/qgsnodetool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ void QgsNodeTool::deleteVertex()
16011601
QList<int> &vertexIds = it2.value();
16021602

16031603
bool res = QgsVectorLayer::Success;
1604-
qSort( vertexIds.begin(), vertexIds.end(), qGreater<int>() );
1604+
std::sort( vertexIds.begin(), vertexIds.end(), std::greater<int>() );
16051605
Q_FOREACH ( int vertexId, vertexIds )
16061606
{
16071607
if ( res != QgsVectorLayer::EmptyGeometry )

src/core/qgsexpressionsorter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class QgsExpressionSorter
160160

161161
delete expressionContext->popScope();
162162

163-
qSort( indexedFeatures.begin(), indexedFeatures.end(), *this );
163+
std::sort( indexedFeatures.begin(), indexedFeatures.end(), *this );
164164

165165
features.clear();
166166

0 commit comments

Comments
 (0)