Fixed some initialization issues reported by Cppcheck.

This commit is contained in:
Lukas Dürrenberger 2015-11-20 15:36:48 +01:00
parent 0df97b4813
commit 63fba49d96
5 changed files with 11 additions and 7 deletions

View File

@ -209,7 +209,8 @@ bool SoundFileReaderFlac::check(InputStream& stream)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundFileReaderFlac::SoundFileReaderFlac() : SoundFileReaderFlac::SoundFileReaderFlac() :
m_decoder(NULL) m_decoder(NULL),
m_clientData()
{ {
} }

View File

@ -49,10 +49,10 @@ SoundRecorder::SoundRecorder() :
m_thread (&SoundRecorder::record, this), m_thread (&SoundRecorder::record, this),
m_sampleRate (0), m_sampleRate (0),
m_processingInterval(milliseconds(100)), m_processingInterval(milliseconds(100)),
m_isCapturing (false) m_isCapturing (false),
m_deviceName (getDefaultDevice())
{ {
// Set the device name to the default device
m_deviceName = getDefaultDevice();
} }

View File

@ -45,11 +45,13 @@ m_thread (&SoundStream::streamData, this),
m_threadMutex (), m_threadMutex (),
m_threadStartState(Stopped), m_threadStartState(Stopped),
m_isStreaming (false), m_isStreaming (false),
m_buffers (),
m_channelCount (0), m_channelCount (0),
m_sampleRate (0), m_sampleRate (0),
m_format (0), m_format (0),
m_loop (false), m_loop (false),
m_samplesProcessed(0) m_samplesProcessed(0),
m_endBuffers ()
{ {
} }

View File

@ -37,6 +37,7 @@ namespace priv
{ {
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
RenderTextureImplFBO::RenderTextureImplFBO() : RenderTextureImplFBO::RenderTextureImplFBO() :
m_context (NULL),
m_frameBuffer(0), m_frameBuffer(0),
m_depthBuffer(0) m_depthBuffer(0)
{ {

View File

@ -54,8 +54,8 @@ namespace
public: public:
GlxErrorHandler(::Display* display) : GlxErrorHandler(::Display* display) :
m_display(display), m_lock (glxErrorMutex),
m_lock (glxErrorMutex) m_display(display)
{ {
glxErrorOccurred = false; glxErrorOccurred = false;
m_previousHandler = XSetErrorHandler(HandleXError); m_previousHandler = XSetErrorHandler(HandleXError);