Skip to content

Commit

Permalink
remove make_unique call
Browse files Browse the repository at this point in the history
  • Loading branch information
usakhelo authored and wwmayer committed Oct 15, 2016
1 parent be249f9 commit c08202a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/PartDesign/Gui/TaskTransformedParameters.cpp
Expand Up @@ -338,8 +338,8 @@ void TaskTransformedParameters::exitSelectionMode()

void TaskTransformedParameters::addReferenceSelectionGate(bool edge, bool face)
{
std::unique_ptr<Gui::SelectionFilterGate> gateRefPtr = std::make_unique<ReferenceSelection>(getBaseObject(), edge, face, /*point =*/ true);
std::unique_ptr<Gui::SelectionFilterGate> gateDepPtr = std::make_unique<NoDependentsSelection>(getTopTransformedObject());
std::unique_ptr<Gui::SelectionFilterGate> gateRefPtr(new ReferenceSelection(getBaseObject(), edge, face, /*point =*/ true));
std::unique_ptr<Gui::SelectionFilterGate> gateDepPtr(new NoDependentsSelection(getTopTransformedObject()));
Gui::Selection().addSelectionGate(new CombineSelectionFilterGates(gateRefPtr, gateDepPtr));
}

Expand Down

0 comments on commit c08202a

Please sign in to comment.