PBAP: silence cppcheck warnings
cppcheck warns when members are not initialized in the constructor. That's okay in this case, but let's do it anyway.
This commit is contained in:
parent
527b47c80e
commit
38c6466738
|
@ -100,6 +100,8 @@ struct PullParams
|
|||
|
||||
/** Initial chunk offset, again in contacts. */
|
||||
uint16_t m_startOffset;
|
||||
|
||||
PullParams() { memset(this, 0, sizeof(*this)); }
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -248,9 +250,17 @@ public:
|
|||
};
|
||||
|
||||
PullAll::PullAll() :
|
||||
m_contentStartIndex(0),
|
||||
m_numContacts(0),
|
||||
m_currentContact(0),
|
||||
m_tmpFileOffset(0)
|
||||
m_tmpFileOffset(0),
|
||||
m_transferOffset(0),
|
||||
m_initialOffset(0),
|
||||
m_transferMaxCount(0),
|
||||
m_desiredMaxCount(0),
|
||||
m_lastTransferRate(0),
|
||||
m_lastContactSizeAverage(0),
|
||||
m_wasSuspended(false)
|
||||
{}
|
||||
|
||||
PullAll::~PullAll()
|
||||
|
|
Loading…
Reference in New Issue