From 32b3e88a7952f7a8d0af0e1baa781d8bf18d0d1f Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 3 Mar 2022 00:51:44 +0100 Subject: [PATCH] Adapter class: make explicitly non-copyable --- src/Adapter.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Adapter.hh b/src/Adapter.hh index 566b1bd..32096c0 100644 --- a/src/Adapter.hh +++ b/src/Adapter.hh @@ -65,7 +65,11 @@ namespace pEp { class Session { public: Session(); - + Session(const Session &) = delete; + Session(const Session &&) = delete; + Session operator=(const Session &) = delete; + Session operator=(const Session &&) = delete; + ~Session() = default; // Initialize() // Initializes the session and registers the CallbackDispatcher as callbacks // @@ -110,10 +114,6 @@ namespace pEp { // re-creates the session using same values void refresh(); - // Not copyable - Session(const Session &) = delete; - Session operator=(const Session &) = delete; - void release(); PEP_SESSION operator()();