Skip to content
Permalink
Browse files

containers

  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 27, 2021
1 parent abc51f9 commit 84fcfd0113570227a9395fa25c19642503df5b36
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/raster/qgsmultibandcolorrenderer.cpp
  2. +1 −1 src/core/vector/qgsvectorlayer.cpp
@@ -146,7 +146,7 @@ QgsRasterBlock *QgsMultiBandColorRenderer::block( int bandNo, QgsRectangle cons
&& mRedBand > 0 && mGreenBand > 0 && mBlueBand > 0
&& mAlphaBand < 1 );

QSet<int> bands;
QList<int> bands;
if ( mRedBand > 0 )
{
bands << mRedBand;
@@ -173,7 +173,7 @@ QgsRasterBlock *QgsMultiBandColorRenderer::block( int bandNo, QgsRectangle cons

QMap<int, QgsRasterBlock *> bandBlocks;
QgsRasterBlock *defaultPointer = nullptr;
QSet<int>::const_iterator bandIt = bands.constBegin();
QList<int>::const_iterator bandIt = bands.constBegin();
for ( ; bandIt != bands.constEnd(); ++bandIt )
{
bandBlocks.insert( *bandIt, defaultPointer );
@@ -1201,7 +1201,7 @@ static const QgsPointSequence vectorPointXY2pointSequence( const QVector<QgsPoin
{
QgsPointSequence pts;
pts.reserve( points.size() );
QVector<const QgsPointXY>::iterator it = points.constBegin();
QVector<QgsPointXY>::const_iterator it = points.constBegin();
while ( it != points.constEnd() )
{
pts.append( QgsPoint( *it ) );

0 comments on commit 84fcfd0

Please sign in to comment.