Improving constructors of aiNode & aiScene

pull/261/head
Léo Terziman 2013-09-25 14:26:13 +02:00
parent 6b471317d2
commit 30c6a74e1d
2 changed files with 30 additions and 30 deletions

View File

@ -70,20 +70,20 @@ ASSIMP_API unsigned int aiGetVersionRevision ()
// ------------------------------------------------------------------------------------------------
ASSIMP_API aiScene::aiScene()
: mFlags()
, mRootNode()
, mNumMeshes()
, mMeshes()
, mNumMaterials()
, mMaterials()
, mNumAnimations()
, mAnimations()
, mNumTextures()
, mTextures()
, mNumLights()
, mLights()
, mNumCameras()
, mCameras()
: mFlags(0)
, mRootNode(NULL)
, mNumMeshes(0)
, mMeshes(NULL)
, mNumMaterials(0)
, mMaterials(NULL)
, mNumAnimations(0)
, mAnimations(NULL)
, mNumTextures(0)
, mTextures(NULL)
, mNumLights(0)
, mLights(NULL)
, mNumCameras(0)
, mCameras(NULL)
, mPrivate(new Assimp::ScenePrivateData())
{
}

View File

@ -123,13 +123,13 @@ struct aiNode
/** Constructor */
aiNode()
// set all members to zero by default
: mName()
, mParent()
, mNumChildren()
, mChildren()
, mNumMeshes()
, mMeshes()
, mMetaData()
: mName("")
, mParent(NULL)
, mNumChildren(0)
, mChildren(NULL)
, mNumMeshes(0)
, mMeshes(NULL)
, mMetaData(NULL)
{
}
@ -138,12 +138,12 @@ struct aiNode
aiNode(const std::string& name)
// set all members to zero by default
: mName(name)
, mParent()
, mNumChildren()
, mChildren()
, mNumMeshes()
, mMeshes()
, mMetaData()
, mParent(NULL)
, mNumChildren(0)
, mChildren(NULL)
, mNumMeshes(0)
, mMeshes(NULL)
, mMetaData(NULL)
{
}