mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 15:18:11 +00:00
fix(Core): add explicit on some constructors
This commit is contained in:
parent
821b1204af
commit
db8bfdff07
5 changed files with 7 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue