Skip to content

Commit

Permalink
Fix some clazy "inefficient-qlist-soft" warnings
Browse files Browse the repository at this point in the history
From the clazy docs:

Finds QList<T> where sizeof(T) > sizeof(void*).
QVector<T> should be used instead.
  • Loading branch information
nyalldawson committed Oct 22, 2016
1 parent 498d03b commit 1dca938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/arcgisrest/qgsamsprovider.cpp
Expand Up @@ -66,7 +66,7 @@ void QgsAmsLegendFetcher::handleFinished()
}
QVariantMap queryResults = doc.object().toVariantMap();
QgsDataSourceUri dataSource( mProvider->dataSourceUri() );
QList< QPair<QString, QImage> > legendEntries;
QVector< QPair<QString, QImage> > legendEntries;
foreach ( const QVariant& result, queryResults["layers"].toList() )
{
QVariantMap queryResultMap = result.toMap();
Expand Down

0 comments on commit 1dca938

Please sign in to comment.