Skip to content

Commit

Permalink
fix warnings on windows
Browse files Browse the repository at this point in the history
(cherry picked from commit bf00878)
  • Loading branch information
jef-n committed Sep 17, 2016
1 parent f61c993 commit 5c5fd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -478,7 +478,7 @@ void QgsRelationReferenceWidget::init()
QVariant nullValue = QSettings().value( "qgis/nullValue", "NULL" );
cb->addItem( nullValue.toString(), QVariant( mReferencedLayer->fields().at( idx ).type() ) );

std::sort( uniqueValues.begin(), uniqueValues.end(), qgsVariantLessThan );
qSort( uniqueValues.begin(), uniqueValues.end(), qgsVariantLessThan );
Q_FOREACH ( const QVariant& v, uniqueValues )
{
cb->addItem( v.toString(), v );
Expand Down

0 comments on commit 5c5fd1f

Please sign in to comment.