Skip to content

Commit

Permalink
Don't return reference
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 5, 2020
1 parent a90555b commit c31ee84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/core/annotations/qgsannotationlayer.h
Expand Up @@ -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)
Expand Down

0 comments on commit c31ee84

Please sign in to comment.