Skip to content

Commit

Permalink
[Fix #7674] Transfer ownership of layer to C++ when added to the regi…
Browse files Browse the repository at this point in the history
…stry
  • Loading branch information
m-kuhn committed Apr 23, 2013
1 parent 13d35ac commit b98db88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/core/qgsmaplayerregistry.sip
Expand Up @@ -47,7 +47,7 @@ class QgsMapLayerRegistry : QObject
* @note As a side-effect QgsProject is made dirty.
* @note Added in QGIS 1.8
*/
QList<QgsMapLayer *> addMapLayers(QList<QgsMapLayer *> theMapLayers,
QList<QgsMapLayer *> addMapLayers(QList<QgsMapLayer *> theMapLayers /Transfer/,
bool addToLegend = true );

/**
Expand All @@ -71,7 +71,7 @@ class QgsMapLayerRegistry : QObject
* @note As a side-effect QgsProject is made dirty.
* @note Use addMapLayers if adding more than one layer at a time
*/
QgsMapLayer* addMapLayer( QgsMapLayer * theMapLayer, bool addToLegend = true );
QgsMapLayer* addMapLayer( QgsMapLayer * theMapLayer /Transfer/, bool addToLegend = true );

/**
* @brief
Expand Down

0 comments on commit b98db88

Please sign in to comment.