mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
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
This commit is contained in:
parent
a99d94e5aa
commit
1002c61f7a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user