Skip to content

Commit

Permalink
More loop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 9, 2020
1 parent 51d1085 commit f69510e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/analysis/processing/qgsalgorithmlayoutatlastoimage.cpp
Expand Up @@ -83,8 +83,8 @@ void QgsLayoutAtlasToImageAlgorithm::initAlgorithm( const QVariantMap & )
addParameter( layersParam.release() );

QStringList imageFormats;
const auto supportedImageFormats { QImageWriter::supportedImageFormats() };
for ( const auto format : QImageWriter::supportedImageFormats() )
const QList<QByteArray> supportedImageFormats { QImageWriter::supportedImageFormats() };
for ( const QByteArray &format : supportedImageFormats )
{
if ( format == QByteArray( "svg" ) )
continue;
Expand Down Expand Up @@ -219,8 +219,8 @@ QVariantMap QgsLayoutAtlasToImageAlgorithm::processAlgorithm( const QVariantMap
QString fileName = QDir( directory ).filePath( QStringLiteral( "atlas" ) );

QStringList imageFormats;
const auto supportedImageFormats { QImageWriter::supportedImageFormats() };
for ( const auto format : QImageWriter::supportedImageFormats() )
const QList<QByteArray> supportedImageFormats { QImageWriter::supportedImageFormats() };
for ( const QByteArray &format : supportedImageFormats )
{
if ( format == QByteArray( "svg" ) )
continue;
Expand Down

0 comments on commit f69510e

Please sign in to comment.