Browse Source

explciit if single arg ctor

= default is preffered
master
heck 3 weeks ago
parent
commit
c4a5b466db
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/transport.hh

+ 2
- 4
src/transport.hh View File

@ -30,12 +30,10 @@ namespace pEp {
virtual ~Config() = 0;
};
Transport(PEP_transport_id id) : id(id), current_status(PEP_tsc_shut_down) {}
explicit Transport(PEP_transport_id id) : id(id), current_status(PEP_tsc_shut_down) {}
Transport(const Transport&) = delete;
Transport& operator=(const Transport&) = delete;
virtual ~Transport() {}
virtual ~Transport() = default;
PEP_transport_id get_id()
{


Loading…
Cancel
Save