Browse Source

Adapter class: make explicitly non-copyable

pull/15/head
heck 3 years ago
parent
commit
32b3e88a79
  1. 10
      src/Adapter.hh

10
src/Adapter.hh

@ -65,7 +65,11 @@ namespace pEp {
class Session { class Session {
public: public:
Session(); Session();
Session(const Session &) = delete;
Session(const Session &&) = delete;
Session operator=(const Session &) = delete;
Session operator=(const Session &&) = delete;
~Session() = default;
// Initialize() // Initialize()
// Initializes the session and registers the CallbackDispatcher as callbacks // Initializes the session and registers the CallbackDispatcher as callbacks
// //
@ -110,10 +114,6 @@ namespace pEp {
// re-creates the session using same values // re-creates the session using same values
void refresh(); void refresh();
// Not copyable
Session(const Session &) = delete;
Session operator=(const Session &) = delete;
void release(); void release();
PEP_SESSION operator()(); PEP_SESSION operator()();

Loading…
Cancel
Save