Skip to content
Permalink
Browse files

[Fix #7674] Transfer ownership of layer to C++ when added to the regi…

…stry
  • Loading branch information
m-kuhn committed Apr 23, 2013
1 parent 13d35ac commit b98db8842b507632fef044044581a762e46527bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/core/qgsmaplayerregistry.sip
@@ -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 );

/**
@@ -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

0 comments on commit b98db88

Please sign in to comment.
You can’t perform that action at this time.