Fixed 4 Coverity reported issues

CID 11851: Unused pointer value (UNUSED_VALUE)
Pointer "gfd" returned by "gr->getField(26)" is never used.

CID 11850: Unused pointer value (UNUSED_VALUE)
Pointer "gfd" returned by "gr->getField(80)" is never used.

CID 11849: Unused pointer value (UNUSED_VALUE)
Pointer "gfd" returned by "gr->getField(3)" is never used.

CID 11848: Unused pointer value (UNUSED_VALUE)
Pointer "gfd" returned by "grec->getField(3)" is never used.
This commit is contained in:
Robert Osfield 2011-05-05 10:31:34 +00:00
parent 9ea9ac728f
commit ee9db5e5ba
2 changed files with 6 additions and 7 deletions

View File

@ -789,9 +789,9 @@ class ReaderGEO
gfd=gr->getField(GEO_DB_TEXT_STRING);
const char *content=gfd ? gfd->getChar() : " ";
text->setText(std::string(content));
gfd=gr->getField(GEO_DB_TEXT_SCALE_X);
//gfd=gr->getField(GEO_DB_TEXT_SCALE_X);
//const float scx=gfd ? gfd->getFloat() : 1.0f;
gfd=gr->getField(GEO_DB_TEXT_SCALE_Y);
//gfd=gr->getField(GEO_DB_TEXT_SCALE_Y);
//const float scy=gfd ? gfd->getFloat() : 1.0f;
gfd=gr->getField(GEO_DB_TEXT_JUSTIFICATION); // GEO_DB_TEXT_DIRECTION);
int tjus=gfd? gfd->getInt() : GEO_TEXT_LEFT_JUSTIFY;
@ -1209,9 +1209,8 @@ class ReaderGEO
}
Group *makeLightPointGeodes(const georecord *gr) {
const geoField *gfd=gr->getField(GEO_DB_RENDERGROUP_MAT);
Group *nug=new Group;
gfd=gr->getField(GEO_DB_NODE_NAME);
const geoField *gfd=gr->getField(GEO_DB_NODE_NAME);
if (gfd) {
char *name = gfd->getChar();
nug->setName(name);
@ -2049,7 +2048,7 @@ void userVars::addUserVar(const georecord &gr) {
gfd= gr.getField(GEO_DB_FLOAT_VAR_VALUE);
nm->setVal(gfd ? gfd->getFloat():0.0f);
gfd= gr.getField(GEO_DB_FLOAT_VAR_DEFAULT);
//gfd= gr.getField(GEO_DB_FLOAT_VAR_DEFAULT);
//nm->setdefault(gfd ? gfd->getFloat():0.0f);
//float fdef=gfd ? gfd->getFloat():0.0f;

View File

@ -592,8 +592,8 @@ bool geoStrContentBehaviour::makeBehave(const georecord *grec, const geoHeaderGe
ctmp++;
}
}
gfd=grec->getField(GEO_DB_STRING_CONTENT_ACTION_PADDING_TYPE);
gfd=grec->getField(GEO_DB_STRING_CONTENT_ACTION_PADDING_TYPE);
//gfd=grec->getField(GEO_DB_STRING_CONTENT_ACTION_PADDING_TYPE);
//gfd=grec->getField(GEO_DB_STRING_CONTENT_ACTION_PADDING_TYPE);
ok=true;
}
}