No copy of QgsLabelSearchTree is allowed

This commit is contained in:
Matthias Kuhn 2017-05-14 19:11:25 +02:00
parent df6d60fcc1
commit 7ac276e713
2 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,10 @@ Removes and deletes all the entries
private:
//! QgsLabelSearchTree cannot be copied.
QgsLabelSearchTree( const QgsLabelSearchTree &rh );
//! QgsLabelSearchTree cannot be copied.
};
/************************************************************************

View File

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