Skip to content

Commit

Permalink
No copy of QgsLabelSearchTree is allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 15, 2017
1 parent df6d60f commit 7ac276e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/core/qgslabelsearchtree.sip
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ Removes and deletes all the entries



private:
//! QgsLabelSearchTree cannot be copied.
QgsLabelSearchTree( const QgsLabelSearchTree &rh );
//! QgsLabelSearchTree cannot be copied.
};

/************************************************************************
Expand Down
6 changes: 6 additions & 0 deletions src/core/qgslabelsearchtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ class CORE_EXPORT QgsLabelSearchTree
mutable pal::RTree<QgsLabelPosition *, double, 2, double> mSpatialIndex;
QList< QgsLabelPosition * > mOwnedPositions;

#ifdef SIP_RUN
//! QgsLabelSearchTree cannot be copied.
QgsLabelSearchTree( const QgsLabelSearchTree &rh );
//! QgsLabelSearchTree cannot be copied.
QgsLabelSearchTree &operator=( const QgsLabelSearchTree &rh );
#endif
};

#endif // QGSLABELTREE_H

0 comments on commit 7ac276e

Please sign in to comment.