зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1293940 - fix uninitialized members. r=gerald
MozReview-Commit-ID: 8QRGKowJiYC --HG-- extra : rebase_source : 0f38f004f22b1a5cf81b842c843c23fdec41e939
This commit is contained in:
Родитель
5b157f2095
Коммит
60c4b69563
|
@ -277,16 +277,17 @@ protected:
|
|||
};
|
||||
|
||||
struct BlockOwner {
|
||||
BlockOwner() : mStream(nullptr), mClass(READAHEAD_BLOCK) {}
|
||||
constexpr BlockOwner() {}
|
||||
|
||||
// The stream that owns this block, or null if the block is free.
|
||||
MediaCacheStream* mStream;
|
||||
MediaCacheStream* mStream = nullptr;
|
||||
// The block index in the stream. Valid only if mStream is non-null.
|
||||
uint32_t mStreamBlock;
|
||||
// Initialized to an insane value to highlight misuse.
|
||||
uint32_t mStreamBlock = UINT32_MAX;
|
||||
// Time at which this block was last used. Valid only if
|
||||
// mClass is METADATA_BLOCK or PLAYED_BLOCK.
|
||||
TimeStamp mLastUseTime;
|
||||
BlockClass mClass;
|
||||
TimeStamp mLastUseTime;
|
||||
BlockClass mClass = READAHEAD_BLOCK;
|
||||
};
|
||||
|
||||
struct Block {
|
||||
|
|
Загрузка…
Ссылка в новой задаче