fix(Core): add explicit on some constructors

This commit is contained in:
Ronan Abhamon 2017-10-10 14:21:50 +02:00
parent 821b1204af
commit db8bfdff07
5 changed files with 7 additions and 5 deletions

View file

@ -45,8 +45,8 @@ class Participant : public Object {
friend class RemoteConference;
public:
Participant (const Address &address);
Participant (Address &&address);
explicit Participant (const Address &address);
explicit Participant (Address &&address);
const Address& getAddress () const;

View file

@ -30,6 +30,8 @@ LINPHONE_BEGIN_NAMESPACE
class AbstractDbPrivate : public ObjectPrivate {
public:
AbstractDbPrivate () = default;
DbSession dbSession;
private:

View file

@ -43,7 +43,7 @@ public:
Soci
};
DbSession (Type type = None);
explicit DbSession (Type type = None);
DbSession (const DbSession &src);
DbSession &operator= (const DbSession &src);

View file

@ -39,7 +39,7 @@ LINPHONE_BEGIN_NAMESPACE
class IceAgent {
public:
IceAgent (MediaSession &mediaSession) : mediaSession(mediaSession) {}
explicit IceAgent (MediaSession &mediaSession) : mediaSession(mediaSession) {}
bool candidatesGathered () const;
void checkSession (IceRole role, bool isReinvite);

View file

@ -42,7 +42,7 @@ struct VbrCodecBitrate {
class PayloadTypeHandler {
public:
PayloadTypeHandler (LinphoneCore *core) : core(core) {}
explicit PayloadTypeHandler (LinphoneCore *core) : core(core) {}
bctbx_list_t *makeCodecsList (SalStreamType type, int bandwidthLimit, int maxCodecs, const bctbx_list_t *previousList);