mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
containers
This commit is contained in:
parent
abc51f935e
commit
84fcfd0113
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user