Commit db8bfdff authored by Ronan's avatar Ronan

fix(Core): add explicit on some constructors

parent 821b1204
......@@ -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;
......
......@@ -30,6 +30,8 @@ LINPHONE_BEGIN_NAMESPACE
class AbstractDbPrivate : public ObjectPrivate {
public:
AbstractDbPrivate () = default;
DbSession dbSession;
private:
......
......@@ -43,7 +43,7 @@ public:
Soci
};
DbSession (Type type = None);
explicit DbSession (Type type = None);
DbSession (const DbSession &src);
DbSession &operator= (const DbSession &src);
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment