mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1117196 - Stop asserting |this| in AudioNodeStream; r=roc
recent clang gives the following warning on these: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
This commit is contained in:
parent
31294a6ac2
commit
1937a85540
@ -109,7 +109,6 @@ AudioNodeStream::SetStreamTimeParameter(uint32_t aIndex, AudioContext* aContext,
|
|||||||
uint32_t mIndex;
|
uint32_t mIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aIndex,
|
GraphImpl()->AppendMessage(new Message(this, aIndex,
|
||||||
aContext->DestinationStream(),
|
aContext->DestinationStream(),
|
||||||
aContext->DOMTimeToStreamTime(aStreamTime)));
|
aContext->DOMTimeToStreamTime(aStreamTime)));
|
||||||
@ -139,7 +138,6 @@ AudioNodeStream::SetDoubleParameter(uint32_t aIndex, double aValue)
|
|||||||
uint32_t mIndex;
|
uint32_t mIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aIndex, aValue));
|
GraphImpl()->AppendMessage(new Message(this, aIndex, aValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -159,7 +157,6 @@ AudioNodeStream::SetInt32Parameter(uint32_t aIndex, int32_t aValue)
|
|||||||
uint32_t mIndex;
|
uint32_t mIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aIndex, aValue));
|
GraphImpl()->AppendMessage(new Message(this, aIndex, aValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,7 +200,6 @@ AudioNodeStream::SetThreeDPointParameter(uint32_t aIndex, const ThreeDPoint& aVa
|
|||||||
uint32_t mIndex;
|
uint32_t mIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aIndex, aValue));
|
GraphImpl()->AppendMessage(new Message(this, aIndex, aValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,7 +219,6 @@ AudioNodeStream::SetBuffer(already_AddRefed<ThreadSharedFloatArrayBufferList>&&
|
|||||||
nsRefPtr<ThreadSharedFloatArrayBufferList> mBuffer;
|
nsRefPtr<ThreadSharedFloatArrayBufferList> mBuffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aBuffer));
|
GraphImpl()->AppendMessage(new Message(this, aBuffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +240,6 @@ AudioNodeStream::SetRawArrayData(nsTArray<float>& aData)
|
|||||||
nsTArray<float> mData;
|
nsTArray<float> mData;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aData));
|
GraphImpl()->AppendMessage(new Message(this, aData));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +270,6 @@ AudioNodeStream::SetChannelMixingParameters(uint32_t aNumberOfChannels,
|
|||||||
ChannelInterpretation mChannelInterpretation;
|
ChannelInterpretation mChannelInterpretation;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aNumberOfChannels,
|
GraphImpl()->AppendMessage(new Message(this, aNumberOfChannels,
|
||||||
aChannelCountMode,
|
aChannelCountMode,
|
||||||
aChannelInterpretation));
|
aChannelInterpretation));
|
||||||
@ -296,7 +289,6 @@ AudioNodeStream::SetPassThrough(bool aPassThrough)
|
|||||||
bool mPassThrough;
|
bool mPassThrough;
|
||||||
};
|
};
|
||||||
|
|
||||||
MOZ_ASSERT(this);
|
|
||||||
GraphImpl()->AppendMessage(new Message(this, aPassThrough));
|
GraphImpl()->AppendMessage(new Message(this, aPassThrough));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user