Skip to content

Commit

Permalink
Make it clear that we want a reference to avoid a compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor committed Apr 9, 2024
1 parent dbb40c5 commit 3b778d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsdxfexportdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ void QgsDxfExportDialog::saveSettingsToXML( QDomDocument &doc ) const
QgsVectorLayerRef vlRef;
const QgsReadWriteContext rwContext = QgsReadWriteContext();

for ( const auto dxfLayer : layers() )
for ( const auto &dxfLayer : layers() )
{
QDomElement layerElement = domDocument.createElement( QStringLiteral( "layer" ) );
vlRef.setLayer( dxfLayer.layer() );
Expand Down

0 comments on commit 3b778d6

Please sign in to comment.