Skip to content

Commit

Permalink
Use QVector instead of std::vector
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Apr 23, 2023
1 parent a7fc705 commit 28a9b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/vector/qgsvectorlayerrenderer.cpp
Expand Up @@ -593,7 +593,7 @@ void QgsVectorLayerRenderer::drawRendererLevels( QgsFeatureRenderer *renderer, Q

// 1. fetch features
QgsFeature fet;
std::vector<QVariant> prevValues; // previous values of ORDER BY attributes
QVector<QVariant> prevValues; // previous values of ORDER BY attributes
while ( fit.nextFeature( fet ) )
{
if ( context.renderingStopped() )
Expand All @@ -619,7 +619,7 @@ void QgsVectorLayerRenderer::drawRendererLevels( QgsFeatureRenderer *renderer, Q

if ( renderer->orderByEnabled() )
{
std::vector<QVariant> currentValues;
QVector<QVariant> currentValues;
for ( auto const idx : orderByAttributeIdx )
{
currentValues.push_back( fet.attribute( idx ) );
Expand Down

0 comments on commit 28a9b11

Please sign in to comment.