mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-05 16:19:59 +01:00
prevent copying/moving of SCPINode objects
This commit is contained in:
parent
6a7b985fa9
commit
c95694582d
|
|
@ -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);}
|
||||
|
|
|
|||
Loading…
Reference in a new issue