Skip to content

Commit

Permalink
PVS: V519 The 'keepExplicitPlacement' variable is assigned values twi…
Browse files Browse the repository at this point in the history
…ce successively.
  • Loading branch information
wwmayer committed Mar 3, 2019
1 parent 519849d commit b1909bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Import/App/AppImportPy.cpp
Expand Up @@ -253,8 +253,8 @@ class Module : public Py::ExtensionModule<Module>
Handle(TDocStd_Document) hDoc;
hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc);

bool keepExplicitPlacement = list.size() > 1;
keepExplicitPlacement = Standard_True;
//bool keepExplicitPlacement = list.size() > 1;
bool keepExplicitPlacement = Standard_True;
Import::ExportOCAFCmd ocaf(hDoc, keepExplicitPlacement);

std::map<Part::Feature*, std::vector<App::Color> > partColors;
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Import/Gui/AppImportGuiPy.cpp
Expand Up @@ -485,8 +485,8 @@ class Module : public Py::ExtensionModule<Module>
Handle(TDocStd_Document) hDoc;
hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc);

bool keepExplicitPlacement = list.size() > 1;
keepExplicitPlacement = Standard_True;
//bool keepExplicitPlacement = list.size() > 1;
bool keepExplicitPlacement = Standard_True;
ExportOCAFGui ocaf(hDoc, keepExplicitPlacement);

// That stuff is exporting a list of selected objects into FreeCAD Tree
Expand Down

0 comments on commit b1909bf

Please sign in to comment.