mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed some initialization issues reported by Cppcheck.
This commit is contained in:
parent
0df97b4813
commit
63fba49d96
@ -209,7 +209,8 @@ bool SoundFileReaderFlac::check(InputStream& stream)
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
SoundFileReaderFlac::SoundFileReaderFlac() :
|
||||
m_decoder(NULL)
|
||||
m_decoder(NULL),
|
||||
m_clientData()
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -49,10 +49,10 @@ SoundRecorder::SoundRecorder() :
|
||||
m_thread (&SoundRecorder::record, this),
|
||||
m_sampleRate (0),
|
||||
m_processingInterval(milliseconds(100)),
|
||||
m_isCapturing (false)
|
||||
m_isCapturing (false),
|
||||
m_deviceName (getDefaultDevice())
|
||||
{
|
||||
// Set the device name to the default device
|
||||
m_deviceName = getDefaultDevice();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,11 +45,13 @@ m_thread (&SoundStream::streamData, this),
|
||||
m_threadMutex (),
|
||||
m_threadStartState(Stopped),
|
||||
m_isStreaming (false),
|
||||
m_buffers (),
|
||||
m_channelCount (0),
|
||||
m_sampleRate (0),
|
||||
m_format (0),
|
||||
m_loop (false),
|
||||
m_samplesProcessed(0)
|
||||
m_samplesProcessed(0),
|
||||
m_endBuffers ()
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ namespace priv
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
RenderTextureImplFBO::RenderTextureImplFBO() :
|
||||
m_context (NULL),
|
||||
m_frameBuffer(0),
|
||||
m_depthBuffer(0)
|
||||
{
|
||||
|
@ -54,8 +54,8 @@ namespace
|
||||
public:
|
||||
|
||||
GlxErrorHandler(::Display* display) :
|
||||
m_display(display),
|
||||
m_lock (glxErrorMutex)
|
||||
m_lock (glxErrorMutex),
|
||||
m_display(display)
|
||||
{
|
||||
glxErrorOccurred = false;
|
||||
m_previousHandler = XSetErrorHandler(HandleXError);
|
||||
|
Loading…
Reference in New Issue
Block a user