mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
Bug 1054149 - Fix anFoo coding style violation in content/media. r=cpearce
--HG-- extra : rebase_source : 69152bba07ecbf4e1a5790ba0f6abb0a6cda3be2
This commit is contained in:
parent
a021626551
commit
7465be451d
@ -17,8 +17,8 @@ namespace mozilla {
|
||||
// Thread and type safe wrapper around nsDeque.
|
||||
template <class T>
|
||||
class MediaQueueDeallocator : public nsDequeFunctor {
|
||||
virtual void* operator() (void* anObject) {
|
||||
delete static_cast<T*>(anObject);
|
||||
virtual void* operator() (void* aObject) {
|
||||
delete static_cast<T*>(aObject);
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
@ -25,10 +25,10 @@ PRLogModuleInfo* GetDemuxerLog();
|
||||
namespace mozilla {
|
||||
|
||||
AppleATDecoder::AppleATDecoder(const mp4_demuxer::AudioDecoderConfig& aConfig,
|
||||
MediaTaskQueue* anAudioTaskQueue,
|
||||
MediaTaskQueue* aAudioTaskQueue,
|
||||
MediaDataDecoderCallback* aCallback)
|
||||
: mConfig(aConfig)
|
||||
, mTaskQueue(anAudioTaskQueue)
|
||||
, mTaskQueue(aAudioTaskQueue)
|
||||
, mCallback(aCallback)
|
||||
, mConverter(nullptr)
|
||||
, mStream(nullptr)
|
||||
|
@ -18,8 +18,8 @@ public:
|
||||
MemoryFunctor() : mSize(0) {}
|
||||
MOZ_DEFINE_MALLOC_SIZE_OF(MallocSizeOf);
|
||||
|
||||
virtual void* operator()(void* anObject) {
|
||||
const AudioData* audioData = static_cast<const AudioData*>(anObject);
|
||||
virtual void* operator()(void* aObject) {
|
||||
const AudioData* audioData = static_cast<const AudioData*>(aObject);
|
||||
mSize += audioData->SizeOfIncludingThis(MallocSizeOf);
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -65,8 +65,8 @@ private:
|
||||
};
|
||||
|
||||
class ResourceQueueDeallocator : public nsDequeFunctor {
|
||||
virtual void* operator() (void* anObject) {
|
||||
delete static_cast<ResourceItem*>(anObject);
|
||||
virtual void* operator() (void* aObject) {
|
||||
delete static_cast<ResourceItem*>(aObject);
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
@ -57,8 +57,8 @@ private:
|
||||
|
||||
// Thread and type safe wrapper around nsDeque.
|
||||
class PacketQueueDeallocator : public nsDequeFunctor {
|
||||
virtual void* operator() (void* anObject) {
|
||||
delete static_cast<NesteggPacketHolder*>(anObject);
|
||||
virtual void* operator() (void* aObject) {
|
||||
delete static_cast<NesteggPacketHolder*>(aObject);
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user