X3DImporter: fix coverity findings.

pull/1263/head
Kim Kulling 2017-05-09 21:35:21 +02:00
parent 4a5c483ac4
commit eb828a3b71
1 changed files with 16 additions and 29 deletions

View File

@ -467,42 +467,29 @@ public:
/// \class CX3DImporter_NodeElement_Geometry3D /// \class CX3DImporter_NodeElement_Geometry3D
/// Three-dimensional body. /// Three-dimensional body.
class CX3DImporter_NodeElement_Geometry3D : public CX3DImporter_NodeElement class CX3DImporter_NodeElement_Geometry3D : public CX3DImporter_NodeElement {
{
/***********************************************/
/****************** Variables ******************/
/***********************************************/
public: public:
std::list<aiVector3D> Vertices; ///< Vertices list.
size_t NumIndices;///< Number of indices in one face.
bool Solid; ///< Flag: if true then render must use back-face culling, else render must draw both sides of object.
std::list<aiVector3D> Vertices;///< Vertices list.
size_t NumIndices;///< Number of indices in one face.
bool Solid;///< Flag: if true then render must use back-face culling, else render must draw both sides of object.
/***********************************************/
/****************** Functions ******************/
/***********************************************/
private:
/// \fn CX3DImporter_NodeElement_Geometry3D(const CX3DImporter_NodeElement_Geometry3D& pNode)
/// Disabled copy constructor.
CX3DImporter_NodeElement_Geometry3D(const CX3DImporter_NodeElement_Geometry3D& pNode);
/// \fn CX3DImporter_NodeElement_Geometry3D& operator=(const CX3DImporter_NodeElement_Geometry3D& pNode)
/// Disabled assign operator.
CX3DImporter_NodeElement_Geometry3D& operator=(const CX3DImporter_NodeElement_Geometry3D& pNode);
public:
/// \fn CX3DImporter_NodeElement_Geometry3D(const EType pType, CX3DImporter_NodeElement* pParent)
/// Constructor. /// Constructor.
/// \param [in] pParent - pointer to parent node. /// \param [in] pParent - pointer to parent node.
/// \param [in] pType - type of geometry object. /// \param [in] pType - type of geometry object.
CX3DImporter_NodeElement_Geometry3D(const EType pType, CX3DImporter_NodeElement* pParent) CX3DImporter_NodeElement_Geometry3D(const EType pType, CX3DImporter_NodeElement* pParent)
: CX3DImporter_NodeElement(pType, pParent), Solid(true) : CX3DImporter_NodeElement(pType, pParent)
{} , Vertices()
, NumIndices( 0 )
, Solid(true) {
// empty
}
private:
/// Disabled copy constructor.
CX3DImporter_NodeElement_Geometry3D(const CX3DImporter_NodeElement_Geometry3D& pNode);
/// Disabled assign operator.
CX3DImporter_NodeElement_Geometry3D& operator=(const CX3DImporter_NodeElement_Geometry3D& pNode);
};// class CX3DImporter_NodeElement_Geometry3D };// class CX3DImporter_NodeElement_Geometry3D
/// \class CX3DImporter_NodeElement_ElevationGrid /// \class CX3DImporter_NodeElement_ElevationGrid