Skip to content

Commit 1002c61

Browse files
rouaultnyalldawson
authored andcommittedNov 29, 2019
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
1 parent a99d94e commit 1002c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/pal/pal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Layer *Pal::addLayer( QgsAbstractLabelProvider *provider, const QString &layerNa
8888

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

9494
return res;

0 commit comments

Comments
 (0)
Please sign in to comment.