mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Don't return reference
This commit is contained in:
parent
a90555bf95
commit
c31ee84b46
@ -58,7 +58,7 @@ Ownership of ``item`` is transferred to the layer.
|
||||
%End
|
||||
|
||||
|
||||
const QMap<QString, QgsAnnotationItem *> &items() const;
|
||||
QMap<QString, QgsAnnotationItem *> items() const;
|
||||
%Docstring
|
||||
Returns a map of items contained in the layer.
|
||||
|
||||
|
@ -87,7 +87,7 @@ class CORE_EXPORT QgsAnnotationLayer : public QgsMapLayer
|
||||
* This map contains references to items owned by the layer, and ownership of these remains
|
||||
* with the layer.
|
||||
*/
|
||||
const QMap<QString, QgsAnnotationItem *> &items() const { return mItems; }
|
||||
QMap<QString, QgsAnnotationItem *> items() const { return mItems; }
|
||||
|
||||
/**
|
||||
* Sets the \a opacity for the annotation layer, where \a opacity is a value between 0 (totally transparent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user