Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No copy of QgsLabelSearchTree is allowed
  • 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
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
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.