Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pal.cpp: fix compilation error with gcc 5.5
Unfortunately the compiler cannot figure out that the type of
the { } is a std::pair, so we have to be explicit about that
  • Loading branch information
rouault authored and nyalldawson committed Nov 29, 2019
1 parent a99d94e commit 1002c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pal/pal.cpp
Expand Up @@ -88,7 +88,7 @@ Layer *Pal::addLayer( QgsAbstractLabelProvider *provider, const QString &layerNa

std::unique_ptr< Layer > layer = qgis::make_unique< Layer >( provider, layerName, arrangement, defaultPriority, active, toLabel, this, displayAll );
Layer *res = layer.get();
mLayers.insert( { provider, std::move( layer ) } );
mLayers.insert( std::pair<QgsAbstractLabelProvider *, std::unique_ptr< Layer >>( provider, std::move( layer ) ) );
mMutex.unlock();

return res;
Expand Down

0 comments on commit 1002c61

Please sign in to comment.