mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Merge pull request #1214 from bpay/cppcheck-cleaning
Fix some issues flagged by cppcheck
This commit is contained in:
commit
497a15cfd0
38 changed files with 96 additions and 42 deletions
|
|
@ -606,8 +606,6 @@ bool DDSFile::read(Stream &s, U32 dropMipCount)
|
|||
mPitchOrLinearSize = getSurfaceSize( dropMipCount );
|
||||
else if ( mFlags.test( PitchSizeFlag ) )
|
||||
mPitchOrLinearSize = getSurfacePitch( dropMipCount );
|
||||
else
|
||||
mPitchOrLinearSize = mPitchOrLinearSize; // Do nothing?
|
||||
|
||||
// Now fix up the rest of the
|
||||
mMipMapCount = getMax( (U32)1, mMipMapCount - dropMipCount );
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public:
|
|||
};
|
||||
|
||||
GFXGLShaderConstHandle::GFXGLShaderConstHandle( GFXGLShader *shader )
|
||||
: mShader( shader ), mSamplerNum(-1), mInstancingConstant(false)
|
||||
: mShader( shader ), mLocation(0), mOffset(0), mSize(0), mSamplerNum(-1), mInstancingConstant(false)
|
||||
{
|
||||
mValid = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class TheoraTextureFrame
|
|||
F32 mFrameDuration;
|
||||
|
||||
TheoraTextureFrame()
|
||||
: mLockedRect( NULL )
|
||||
: mLockedRect( NULL ), mFrameNumber(0), mFrameTime(0.0f), mFrameDuration(0.0f)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ class VideoEncoderTheora : public VideoEncoder, public Thread
|
|||
|
||||
public:
|
||||
VideoEncoderTheora() :
|
||||
mLastFrame(NULL)
|
||||
mCurrentFrame(0), td(NULL), mLastFrame(NULL)
|
||||
{
|
||||
setStatus(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue