Fix static-code-analysis findings.
This commit is contained in:
@@ -717,11 +717,10 @@ struct GroupFrame
|
||||
*/
|
||||
struct IntFace_MDL7 {
|
||||
// provide a constructor for our own convenience
|
||||
IntFace_MDL7()
|
||||
{
|
||||
// set everything to zero
|
||||
mIndices[0] = mIndices[1] = mIndices[2] = 0;
|
||||
iMatIndex[0] = iMatIndex[1] = 0;
|
||||
IntFace_MDL7() noexcept
|
||||
: mIndices { 0 }
|
||||
, iMatIndex{ 0 } {
|
||||
// empty
|
||||
}
|
||||
|
||||
//! Vertex indices
|
||||
@@ -737,13 +736,12 @@ struct IntFace_MDL7 {
|
||||
* which has been created from two single materials along with the
|
||||
* original material indices.
|
||||
*/
|
||||
struct IntMaterial_MDL7
|
||||
{
|
||||
struct IntMaterial_MDL7 {
|
||||
// provide a constructor for our own convenience
|
||||
IntMaterial_MDL7()
|
||||
{
|
||||
pcMat = NULL;
|
||||
iOldMatIndices[0] = iOldMatIndices[1] = 0;
|
||||
IntMaterial_MDL7() noexcept
|
||||
: pcMat( nullptr )
|
||||
, iOldMatIndices{ 0 } {
|
||||
// empty
|
||||
}
|
||||
|
||||
//! Material instance
|
||||
@@ -761,7 +759,7 @@ struct IntMaterial_MDL7
|
||||
struct IntBone_MDL7 : aiBone
|
||||
{
|
||||
//! Default constructor
|
||||
IntBone_MDL7() : iParent (0xffff)
|
||||
IntBone_MDL7() noexcept : iParent (0xffff)
|
||||
{
|
||||
pkeyPositions.reserve(30);
|
||||
pkeyScalings.reserve(30);
|
||||
@@ -806,12 +804,12 @@ struct IntFrameInfo_MDL7
|
||||
struct IntGroupInfo_MDL7
|
||||
{
|
||||
//! Default constructor
|
||||
IntGroupInfo_MDL7()
|
||||
IntGroupInfo_MDL7() noexcept
|
||||
: iIndex(0)
|
||||
, pcGroup(NULL)
|
||||
, pcGroupUVs(NULL)
|
||||
, pcGroupTris(NULL)
|
||||
, pcGroupVerts(NULL)
|
||||
, pcGroup(nullptr)
|
||||
, pcGroupUVs(nullptr)
|
||||
, pcGroupTris(nullptr)
|
||||
, pcGroupVerts(nullptr)
|
||||
{}
|
||||
|
||||
//! Construction from an existing group header
|
||||
@@ -843,7 +841,7 @@ struct IntGroupInfo_MDL7
|
||||
//! Holds the data that belongs to a MDL7 mesh group
|
||||
struct IntGroupData_MDL7
|
||||
{
|
||||
IntGroupData_MDL7()
|
||||
IntGroupData_MDL7() noexcept
|
||||
: bNeed2UV(false)
|
||||
{}
|
||||
|
||||
@@ -872,10 +870,9 @@ struct IntGroupData_MDL7
|
||||
|
||||
// -------------------------------------------------------------------------------------
|
||||
//! Holds data from an MDL7 file that is shared by all mesh groups
|
||||
struct IntSharedData_MDL7
|
||||
{
|
||||
struct IntSharedData_MDL7 {
|
||||
//! Default constructor
|
||||
IntSharedData_MDL7()
|
||||
IntSharedData_MDL7() noexcept
|
||||
: apcOutBones(),
|
||||
iNum()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user