From c95694582d500f136c73d7d91a1ce17e0c84e972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Tue, 9 Dec 2025 11:50:56 +0100 Subject: [PATCH] prevent copying/moving of SCPINode objects --- Software/PC_Application/LibreVNA-GUI/scpi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Software/PC_Application/LibreVNA-GUI/scpi.h b/Software/PC_Application/LibreVNA-GUI/scpi.h index 586771b..91222b9 100644 --- a/Software/PC_Application/LibreVNA-GUI/scpi.h +++ b/Software/PC_Application/LibreVNA-GUI/scpi.h @@ -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);}