Fix warnings introduced in new PartDesign
Mostly unused wariables and compare of signed & unsigned
This commit is contained in:
committed by
Stefan Tröger
parent
81015b3f44
commit
0cfc0cd424
@@ -74,10 +74,8 @@ short Loft::mustExecute() const
|
||||
App::DocumentObjectExecReturn *Loft::execute(void)
|
||||
{
|
||||
|
||||
Part::Part2DObject* sketch = 0;
|
||||
std::vector<TopoDS_Wire> wires;
|
||||
try {
|
||||
sketch = getVerifiedSketch();
|
||||
wires = getSketchWires();
|
||||
} catch (const Base::Exception& e) {
|
||||
return new App::DocumentObjectExecReturn(e.what());
|
||||
@@ -116,7 +114,7 @@ App::DocumentObjectExecReturn *Loft::execute(void)
|
||||
return new App::DocumentObjectExecReturn("Loft: All sections need to be part features");
|
||||
|
||||
TopExp_Explorer ex;
|
||||
int i=0;
|
||||
size_t i=0;
|
||||
for (ex.Init(static_cast<Part::Feature*>(obj)->Shape.getValue(), TopAbs_WIRE); ex.More(); ex.Next(), ++i) {
|
||||
if(i>=wiresections.size())
|
||||
return new App::DocumentObjectExecReturn("Loft: Sections need to have the same amount of inner wires as the base section");
|
||||
|
||||
Reference in New Issue
Block a user