prevented cast/unused/uninitialized warnings and some indentation work.

This commit is contained in:
Marco Di Benedetto 2009-12-01 17:37:45 +00:00
parent 939da657a9
commit 08f9b6a4b3
3 changed files with 692 additions and 690 deletions

View File

@ -691,6 +691,8 @@ static Matrix44f getTransfMatrixFromNode(const QDomElement parentNode)
static int Open(OpenMeshType& m,const char* filename, InfoDAE& info, CallBackPos *cb=0)
{
(void)cb;
QDEBUG("----- Starting the processing of %s ------",filename);
//AdditionalInfoDAE& inf = new AdditionalInfoDAE();
//info = new InfoDAE();

View File

@ -916,7 +916,7 @@ static bool LoadMask(const char * filename, int &mask)
materials.clear();
Material currentMaterial;
currentMaterial.index = -1;
currentMaterial.index = (unsigned int)(-1);
bool first = true;
while (!stream.eof())
@ -935,7 +935,7 @@ static bool LoadMask(const char * filename, int &mask)
{
materials.push_back(currentMaterial);
currentMaterial = Material();
currentMaterial.index = -1;
currentMaterial.index = (unsigned int)(-1);
}
else
first = false;

View File

@ -638,7 +638,7 @@ namespace io {
if(fnameV != nameV) return VMI_INCOMPATIBLE_VERTEX_TYPE;
if(fnameF != nameF) return VMI_INCOMPATIBLE_FACE_TYPE;
int offsetV,offsetF;
int offsetV=0,offsetF=0;
if(vertSize!=0)
/* read the address of the first vertex */