Skip to content
Permalink
Browse files
No copy of QgsLabelSearchTree is allowed
  • Loading branch information
m-kuhn committed May 15, 2017
1 parent df6d60f commit 7ac276e7134036ee126395132e6dc2eff627c3b9
Showing with 10 additions and 0 deletions.
  1. +4 −0 python/core/qgslabelsearchtree.sip
  2. +6 −0 src/core/qgslabelsearchtree.h
@@ -32,6 +32,10 @@ Removes and deletes all the entries



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

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