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:
parent
9ea9ac728f
commit
ee9db5e5ba
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user