mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1453795 - WebRTC - Initialize member fields in classes/ structures. r=rjesup
--HG-- extra : amend_source : f4d5cf1f53793ddb457e81fdf9220ce43fbd4ff7
This commit is contained in:
parent
7b56b88b06
commit
d9e98a1219
@ -307,6 +307,11 @@ DataChannelConnection::DataChannelConnection(DataConnectionListener *listener,
|
||||
nsIEventTarget *aTarget)
|
||||
: NeckoTargetHolder(aTarget)
|
||||
, mLock("netwerk::sctp::DataChannelConnection")
|
||||
, mSendInterleaved(false)
|
||||
, mPpidFragmentation(false)
|
||||
, mMaxMessageSizeSet(false)
|
||||
, mMaxMessageSize(0)
|
||||
, mAllocateEven(false)
|
||||
{
|
||||
mCurrentStream = 0;
|
||||
mState = CLOSED;
|
||||
|
@ -67,7 +67,12 @@ public:
|
||||
const uint8_t *GetData() { return (const uint8_t *)(mData + mPos); };
|
||||
|
||||
protected:
|
||||
OutgoingMsg() = default;; // Use this for inheritance only
|
||||
OutgoingMsg() // Use this for inheritance only
|
||||
: mLength(0)
|
||||
, mData(nullptr)
|
||||
, mInfo(nullptr)
|
||||
, mPos(0)
|
||||
{};
|
||||
size_t mLength;
|
||||
const uint8_t *mData;
|
||||
struct sctp_sendv_spa *mInfo;
|
||||
@ -382,6 +387,7 @@ public:
|
||||
, mPrPolicy(policy)
|
||||
, mPrValue(value)
|
||||
, mFlags(flags)
|
||||
, mId(0)
|
||||
, mIsRecvBinary(false)
|
||||
, mBufferedThreshold(0) // default from spec
|
||||
, mMainThreadEventTarget(connection->GetNeckoTarget())
|
||||
|
Loading…
Reference in New Issue
Block a user