Refactor: Initialize all POD members
parent
8c94e51e90
commit
d25c36960a
|
@ -47,6 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#include <assimp/scene.h>
|
||||
#include <assimp/ai_assert.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
static const aiImporterDesc desc = {
|
||||
|
@ -183,12 +184,11 @@ USE_ODDLPARSER_NS
|
|||
//------------------------------------------------------------------------------------------------
|
||||
OpenGEXImporter::VertexContainer::VertexContainer()
|
||||
: m_numVerts( 0 )
|
||||
, m_vertices()
|
||||
, m_vertices(NULL)
|
||||
, m_numNormals( 0 )
|
||||
, m_normals()
|
||||
, m_textureCoords()
|
||||
, m_numUVComps() {
|
||||
// empty
|
||||
, m_normals(NULL) {
|
||||
std::fill(&m_numUVComps[0], &m_numUVComps[AI_MAX_NUMBER_OF_TEXTURECOORDS], 0U);
|
||||
std::fill(&m_textureCoords[0], &m_textureCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS], static_cast<aiVector3D *>(NULL));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue