Don't return reference

This commit is contained in:
Nyall Dawson 2020-07-29 06:45:04 +10:00
parent a90555bf95
commit c31ee84b46
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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)