Skip to content

Commit

Permalink
Refactor: Initialize all POD members
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed May 18, 2015
1 parent 8c94e51 commit d25c369
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/OpenGEXImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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));
}

//------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit d25c369

Please sign in to comment.