Skip to content
Permalink
Browse files

Use std::reverse instead of custom array reverse

  • Loading branch information
nyalldawson committed Aug 6, 2017
1 parent 7f5b4db commit 7f1fa540b7488e99de978cf593d4fb49d4fd0ed2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -3605,7 +3605,7 @@ static QVariant fcnArrayCat( const QVariantList &values, const QgsExpressionCont
static QVariant fcnArrayReverse( const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent )
{
QVariantList list = QgsExpressionUtils::getListValue( values.at( 0 ), parent );
for ( int k = 0, s = list.size(), max = ( s / 2 ); k < max; k++ ) list.swap( k, s - ( 1 + k ) );
std::reverse( list.begin(), list.end() );
return list;
}

0 comments on commit 7f1fa54

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