Skip to content

Commit 7ac276e

Browse files
committed
No copy of QgsLabelSearchTree is allowed
1 parent df6d60f commit 7ac276e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

python/core/qgslabelsearchtree.sip

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ Removes and deletes all the entries
3232

3333

3434

35+
private:
36+
//! QgsLabelSearchTree cannot be copied.
37+
QgsLabelSearchTree( const QgsLabelSearchTree &rh );
38+
//! QgsLabelSearchTree cannot be copied.
3539
};
3640

3741
/************************************************************************

src/core/qgslabelsearchtree.h

+6
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class CORE_EXPORT QgsLabelSearchTree
7070
mutable pal::RTree<QgsLabelPosition *, double, 2, double> mSpatialIndex;
7171
QList< QgsLabelPosition * > mOwnedPositions;
7272

73+
#ifdef SIP_RUN
74+
//! QgsLabelSearchTree cannot be copied.
75+
QgsLabelSearchTree( const QgsLabelSearchTree &rh );
76+
//! QgsLabelSearchTree cannot be copied.
77+
QgsLabelSearchTree &operator=( const QgsLabelSearchTree &rh );
78+
#endif
7379
};
7480

7581
#endif // QGSLABELTREE_H

0 commit comments

Comments
 (0)