зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1167380 - Mark (Read/Write)SegmentsState::m(Source/Sink) as MOZ_NON_OWNING_REF and mark as MOZ_STACK_CLASS. r=froydnj
This commit is contained in:
Родитель
a7801d38be
Коммит
8b31d0676c
|
@ -495,9 +495,10 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
struct ReadSegmentsState
|
||||
struct MOZ_STACK_CLASS ReadSegmentsState
|
||||
{
|
||||
nsIOutputStream* mSink;
|
||||
// the nsIOutputStream will outlive the ReadSegmentsState on the stack
|
||||
nsIOutputStream* MOZ_NON_OWNING_REF mSink;
|
||||
nsresult mSinkCondition;
|
||||
};
|
||||
|
||||
|
@ -544,9 +545,10 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
struct WriteSegmentsState
|
||||
struct MOZ_STACK_CLASS WriteSegmentsState
|
||||
{
|
||||
nsIInputStream* mSource;
|
||||
// the nsIInputStream will outlive the WriteSegmentsState on the stack
|
||||
nsIInputStream* MOZ_NON_OWNING_REF mSource;
|
||||
nsresult mSourceCondition;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче