fix -Wextra & -Wdeprecated in Path
This commit is contained in:
@@ -62,6 +62,7 @@ CmdPathCompound::CmdPathCompound()
|
||||
|
||||
void CmdPathCompound::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::vector<Gui::SelectionSingleton::SelObj> Sel = getSelection().getSelection();
|
||||
if (Sel.size() > 0) {
|
||||
std::ostringstream cmd;
|
||||
@@ -115,6 +116,7 @@ CmdPathShape::CmdPathShape()
|
||||
|
||||
void CmdPathShape::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::vector<Gui::SelectionSingleton::SelObj> Sel = getSelection().getSelection();
|
||||
if (Sel.size() == 1) {
|
||||
if (Sel[0].pObject->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) {
|
||||
|
||||
@@ -127,6 +127,7 @@ void TaskDlgPathCompound::open()
|
||||
|
||||
void TaskDlgPathCompound::clicked(int button)
|
||||
{
|
||||
Q_UNUSED(button);
|
||||
}
|
||||
|
||||
bool TaskDlgPathCompound::accept()
|
||||
|
||||
@@ -42,6 +42,7 @@ PROPERTY_SOURCE(PathGui::ViewProviderPathCompound, PathGui::ViewProviderPath)
|
||||
|
||||
bool ViewProviderPathCompound::setEdit(int ModNum)
|
||||
{
|
||||
Q_UNUSED(ModNum);
|
||||
Gui::TaskView::TaskDialog* dlg = new TaskDlgPathCompound(this);
|
||||
Gui::Control().showDialog(dlg);
|
||||
return true;
|
||||
@@ -49,6 +50,7 @@ bool ViewProviderPathCompound::setEdit(int ModNum)
|
||||
|
||||
void ViewProviderPathCompound::unsetEdit(int ModNum)
|
||||
{
|
||||
Q_UNUSED(ModNum);
|
||||
// when pressing ESC make sure to close the dialog
|
||||
Gui::Control().closeDialog();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user