+ fix various gcc & clang warnings
This commit is contained in:
@@ -54,7 +54,6 @@ using namespace PartDesign;
|
||||
|
||||
namespace PartDesign {
|
||||
|
||||
const App::PropertyQuantityConstraint::Constraints apexRange = {0.0,90.0,0.1};
|
||||
const App::PropertyQuantityConstraint::Constraints torusRangeV = {-180.0,180.0,1.0};
|
||||
const App::PropertyQuantityConstraint::Constraints angleRangeU = {0.0,360.0,1.0};
|
||||
const App::PropertyQuantityConstraint::Constraints angleRangeV = {-90.0,90.0,1.0};
|
||||
|
||||
@@ -36,10 +36,6 @@ using namespace PartDesign;
|
||||
const char* PartDesign::Thickness::ModeEnums[] = {"Skin","Pipe", "RectoVerso",NULL};
|
||||
const char* PartDesign::Thickness::JoinEnums[] = {"Arc", "Intersection",NULL};
|
||||
|
||||
namespace PartDesign {
|
||||
const App::PropertyQuantityConstraint::Constraints quantityRange = {0.0,FLT_MAX,0.1};
|
||||
}
|
||||
|
||||
PROPERTY_SOURCE(PartDesign::Thickness, PartDesign::DressUp)
|
||||
|
||||
Thickness::Thickness()
|
||||
|
||||
@@ -67,11 +67,10 @@ public:
|
||||
protected Q_SLOTS:
|
||||
void onUpdate(bool);
|
||||
void onSelectionChanged(const Gui::SelectionChanges& msg);
|
||||
|
||||
|
||||
private:
|
||||
Ui_TaskFeaturePick* ui;
|
||||
QWidget* proxy;
|
||||
SoSwitch* featureswitch;
|
||||
std::vector<Gui::ViewProviderOrigin*> origins;
|
||||
|
||||
std::vector<QString> features;
|
||||
|
||||
@@ -133,16 +133,16 @@ App::Part* getPartFor(const App::DocumentObject* obj, bool messageIfNot) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static void buildDefaultPartAndBody(const App::Document* doc)
|
||||
{
|
||||
// This adds both the base planes and the body
|
||||
std::string PartName = doc->getUniqueObjectName("Part");
|
||||
//// create a PartDesign Part for now, can be later any kind of Part or an empty one
|
||||
Gui::Command::addModule(Gui::Command::Doc, "PartDesignGui");
|
||||
Gui::Command::doCommand(Gui::Command::Doc, "App.activeDocument().Tip = App.activeDocument().addObject('App::Part','%s')", PartName.c_str());
|
||||
Gui::Command::doCommand(Gui::Command::Doc, "PartDesignGui.setUpPart(App.activeDocument().%s)", PartName.c_str());
|
||||
Gui::Command::doCommand(Gui::Command::Gui, "Gui.activeView().setActiveObject('Part',App.activeDocument().%s)", PartName.c_str());
|
||||
}
|
||||
//static void buildDefaultPartAndBody(const App::Document* doc)
|
||||
//{
|
||||
// // This adds both the base planes and the body
|
||||
// std::string PartName = doc->getUniqueObjectName("Part");
|
||||
// //// create a PartDesign Part for now, can be later any kind of Part or an empty one
|
||||
// Gui::Command::addModule(Gui::Command::Doc, "PartDesignGui");
|
||||
// Gui::Command::doCommand(Gui::Command::Doc, "App.activeDocument().Tip = App.activeDocument().addObject('App::Part','%s')", PartName.c_str());
|
||||
// Gui::Command::doCommand(Gui::Command::Doc, "PartDesignGui.setUpPart(App.activeDocument().%s)", PartName.c_str());
|
||||
// Gui::Command::doCommand(Gui::Command::Gui, "Gui.activeView().setActiveObject('Part',App.activeDocument().%s)", PartName.c_str());
|
||||
//}
|
||||
|
||||
|
||||
void fixSketchSupport (Sketcher::SketchObject* sketch)
|
||||
|
||||
@@ -172,7 +172,7 @@ void ViewProviderDatum::setDisplayMode(const char* ModeName)
|
||||
std::string ViewProviderDatum::getElement(const SoDetail* detail) const
|
||||
{
|
||||
if (detail) {
|
||||
int element;
|
||||
int element = 1;
|
||||
|
||||
if (detail->getTypeId() == SoLineDetail::getClassTypeId()) {
|
||||
const SoLineDetail* line_detail = static_cast<const SoLineDetail*>(detail);
|
||||
|
||||
Reference in New Issue
Block a user