fix Coverity issues

This commit is contained in:
wmayer
2016-08-20 17:21:01 +02:00
parent 85c7cd3263
commit bed76edb48
18 changed files with 133 additions and 136 deletions

View File

@@ -105,7 +105,7 @@ App::DocumentObjectExecReturn *LuxProject::execute(void)
const std::vector<App::DocumentObject*> &Grp = Group.getValues();
for (std::vector<App::DocumentObject*>::const_iterator It= Grp.begin();It!=Grp.end();++It) {
if ((*It)->getTypeId().isDerivedFrom(Raytracing::RaySegment::getClassTypeId())) {
Raytracing::RaySegment *View = dynamic_cast<Raytracing::RaySegment *>(*It);
Raytracing::RaySegment *View = static_cast<Raytracing::RaySegment *>(*It);
ofile << View->Result.getValue();
ofile << endl;
}