Skip to content

Commit

Permalink
Add variables to initializer lists
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru authored and sbooth committed Nov 22, 2016
1 parent 9739df0 commit 678ea90
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AudioRingBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace {
#pragma mark Creation and Destruction

SFB::Audio::RingBuffer::RingBuffer()
: mBuffers(nullptr), mCapacityFrames(0), mReadPointer(0), mWritePointer(0)
: mBuffers(nullptr), mCapacityFrames(0), mCapacityFramesMask(0), mWritePointer(0), mReadPointer(0)
{}

SFB::Audio::RingBuffer::~RingBuffer()
Expand Down
2 changes: 1 addition & 1 deletion Decoders/LibavDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ AudioDecoder * LibavDecoder::CreateDecoder(InputSource *inputSource)
#pragma mark Creation and Destruction

LibavDecoder::LibavDecoder(InputSource *inputSource)
: AudioDecoder(inputSource), mFrame(nullptr), mIOContext(nullptr), mFormatContext(nullptr), mStreamIndex(0), mCurrentFrame(0), mBufferList(nullptr)
: AudioDecoder(inputSource), mBufferList(nullptr), mIOContext(nullptr), mFrame(nullptr), mFormatContext(nullptr), mStreamIndex(0), mCurrentFrame(0)
{}

LibavDecoder::~LibavDecoder()
Expand Down
2 changes: 1 addition & 1 deletion Decoders/OggSpeexDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ SFB::Audio::Decoder::unique_ptr SFB::Audio::OggSpeexDecoder::CreateDecoder(Input
#pragma mark Creation and Destruction

SFB::Audio::OggSpeexDecoder::OggSpeexDecoder(InputSource::unique_ptr inputSource)
: Decoder(std::move(inputSource)), mCurrentFrame(0), mTotalFrames(-1), mSpeexDecoder(nullptr), mSpeexStereoState(nullptr), mSpeexSerialNumber(-1), mSpeexEOSReached(false), mSpeexFramesPerOggPacket(0), mOggPacketCount(0), mExtraSpeexHeaderCount(0)
: Decoder(std::move(inputSource)), mSpeexDecoder(nullptr), mCurrentFrame(0), mTotalFrames(-1), mOggPacketCount(0), mSpeexFramesPerOggPacket(0), mExtraSpeexHeaderCount(0), mSpeexStereoState(nullptr), mSpeexSerialNumber(-1), mSpeexEOSReached(false)
{}

SFB::Audio::OggSpeexDecoder::~OggSpeexDecoder()
Expand Down
3 changes: 2 additions & 1 deletion ReplayGainAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class SFB::Audio::ReplayGainAnalyzer::ReplayGainAnalyzerPrivate
float albumPeak;

ReplayGainAnalyzerPrivate()
: trackPeak(0), albumPeak(0)
: sampleWindow(0), totsamp(0), lsum(0), rsum(0), freqindex(0), trackPeak(0), albumPeak(0)
{
linpre = linprebuf + MAX_ORDER;
rinpre = rinprebuf + MAX_ORDER;
Expand All @@ -277,6 +277,7 @@ class SFB::Audio::ReplayGainAnalyzer::ReplayGainAnalyzerPrivate
lout = loutbuf + MAX_ORDER;
rout = routbuf + MAX_ORDER;

memset(A, 0, sizeof(A));
memset(B, 0, sizeof(B));
}

Expand Down
2 changes: 1 addition & 1 deletion RingBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace {
#pragma mark Creation and Destruction

SFB::RingBuffer::RingBuffer()
: mBuffer(nullptr), mCapacityBytes(0), mReadPointer(0), mWritePointer(0)
: mBuffer(nullptr), mCapacityBytes(0), mCapacityBytesMask(0), mWritePointer(0), mReadPointer(0)
{}

SFB::RingBuffer::~RingBuffer()
Expand Down

0 comments on commit 678ea90

Please sign in to comment.