prevent copying/moving of SCPINode objects

This commit is contained in:
Jan Käberich 2025-12-09 11:50:56 +01:00
parent 6a7b985fa9
commit c95694582d

View file

@ -34,6 +34,13 @@ class SCPINode {
public:
SCPINode(QString name) :
name(name), parent(nullptr), operationPending(false){}
// prevent copying and moving
SCPINode(const SCPINode&) = delete;
SCPINode& operator=(const SCPINode&) = delete;
SCPINode(SCPINode&&) = delete;
SCPINode& operator=(SCPINode&&) = delete;
virtual ~SCPINode();
bool add(SCPINode *node) {return addInternal(node, 0);}