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:
Ehsan Akhgari 2015-01-02 15:33:27 -05:00
parent 31294a6ac2
commit 1937a85540

View File

@ -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));
} }