Skip to content
Permalink
Browse files

Fix warning

  • Loading branch information
nyalldawson committed Dec 27, 2020
1 parent 828c161 commit 8a3eefd0a599dd75b3a260c23a7eb5ccfae742c5
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/core/qgsvectorlayerrenderer.cpp
@@ -79,8 +79,12 @@ QgsVectorLayerRenderer::QgsVectorLayerRenderer( QgsVectorLayer *layer, QgsRender
mRenderers.emplace_back( generator->createRenderer() );
prevLevel = generator->level();
}
if ( mainRenderer ) // cppcheck-suppress accessMoved
mRenderers.emplace_back( std::move( mainRenderer ) ); // cppcheck-suppress accessMoved
// cppcheck-suppress accessMoved
if ( mainRenderer )
{
// cppcheck-suppress accessMoved
mRenderers.emplace_back( std::move( mainRenderer ) );
}

mSelectedFeatureIds = layer->selectedFeatureIds();

0 comments on commit 8a3eefd

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