mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-21 11:53:07 +09:00
Issue #1877 - Resolve RELEASE_OR_BETA conditionals.
This commit is contained in:
parent
93c90e371b
commit
d4eac725fd
30 changed files with 75 additions and 144 deletions
6
dom/cache/StreamControl.cpp
vendored
6
dom/cache/StreamControl.cpp
vendored
|
|
@ -44,7 +44,7 @@ void
|
|||
StreamControl::CloseReadStreams(const nsID& aId)
|
||||
{
|
||||
AssertOwningThread();
|
||||
#if defined(DEBUG) || !defined(RELEASE_OR_BETA)
|
||||
#if defined(DEBUG)
|
||||
uint32_t closedCount = 0;
|
||||
#endif
|
||||
|
||||
|
|
@ -53,13 +53,15 @@ StreamControl::CloseReadStreams(const nsID& aId)
|
|||
RefPtr<ReadStream::Controllable> stream = iter.GetNext();
|
||||
if (stream->MatchId(aId)) {
|
||||
stream->CloseStream();
|
||||
#if defined(DEBUG) || !defined(RELEASE_OR_BETA)
|
||||
#if defined(DEBUG)
|
||||
closedCount += 1;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(DEBUG)
|
||||
MOZ_DIAGNOSTIC_ASSERT(closedCount > 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue