PVS: V519 A variable is assigned values twice successively.

This commit is contained in:
wmayer
2020-07-17 09:48:08 +02:00
parent f29a1c43cb
commit 39fe47b9de
3 changed files with 12 additions and 8 deletions

View File

@@ -316,9 +316,10 @@ private:
if(keepPlacement!=Py_None)
ocaf.setKeepPlacement(PyObject_IsTrue(keepPlacement));
ocaf.exportObjects(objs);
}else{
bool keepExplicitPlacement = objs.size() > 1;
keepExplicitPlacement = Standard_True;
}
else {
//bool keepExplicitPlacement = objs.size() > 1;
bool keepExplicitPlacement = Standard_True;
ExportOCAF ocaf(hDoc, keepExplicitPlacement);
// That stuff is exporting a list of selected objects into FreeCAD Tree
std::vector <TDF_Label> hierarchical_label;