From 7efbe9a071db67ec9eec8cac25236741c1952389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 14 Mar 2021 17:14:34 +0100 Subject: [PATCH] ksys: Make BaseProcHandle non-copyable and non-movable to prevent misuse --- src/KingSystem/ActorSystem/actBaseProcHandle.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/KingSystem/ActorSystem/actBaseProcHandle.h b/src/KingSystem/ActorSystem/actBaseProcHandle.h index 7a28f949..0e3f9e38 100644 --- a/src/KingSystem/ActorSystem/actBaseProcHandle.h +++ b/src/KingSystem/ActorSystem/actBaseProcHandle.h @@ -14,6 +14,11 @@ public: BaseProcHandle(); ~BaseProcHandle(); + BaseProcHandle(const BaseProcHandle&) = delete; + BaseProcHandle(BaseProcHandle&&) = delete; + auto operator=(const BaseProcHandle&) = delete; + auto operator=(BaseProcHandle&&) = delete; + bool isProcReady() const; bool hasProcCreationFailed() const; bool isProcCreationCancelled() const;