Mod: redundant void 2
This commit is contained in:
@@ -169,7 +169,7 @@ short SketchObject::mustExecute() const
|
||||
return Part2DObject::mustExecute();
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *SketchObject::execute(void)
|
||||
App::DocumentObjectExecReturn *SketchObject::execute()
|
||||
{
|
||||
try {
|
||||
App::DocumentObjectExecReturn* rtn = Part2DObject::execute();//to positionBySupport
|
||||
@@ -227,7 +227,7 @@ App::DocumentObjectExecReturn *SketchObject::execute(void)
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
int SketchObject::hasConflicts(void) const
|
||||
int SketchObject::hasConflicts() const
|
||||
{
|
||||
if (lastDoF < 0) // over-constrained sketch
|
||||
return -2;
|
||||
@@ -560,7 +560,7 @@ int SketchObject::setDatumsDriving(bool isdriving)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SketchObject::moveDatumsToEnd(void)
|
||||
int SketchObject::moveDatumsToEnd()
|
||||
{
|
||||
Base::StateLocker lock(managedoperation, true); // no need to check input data validity as this is an sketchobject managed operation.
|
||||
|
||||
@@ -828,7 +828,7 @@ Base::Vector3d SketchObject::getPoint(int GeoId, PointPos PosId) const
|
||||
return Base::Vector3d();
|
||||
}
|
||||
|
||||
int SketchObject::getAxisCount(void) const
|
||||
int SketchObject::getAxisCount() const
|
||||
{
|
||||
const std::vector< Part::Geometry * > &vals = getInternalGeometry();
|
||||
|
||||
@@ -6536,7 +6536,7 @@ Part::Geometry* projectLine(const BRepAdaptor_Curve& curve, const Handle(Geom_Pl
|
||||
}
|
||||
}
|
||||
|
||||
bool SketchObject::evaluateSupport(void)
|
||||
bool SketchObject::evaluateSupport()
|
||||
{
|
||||
// returns false if the shape is broken, null or non-planar
|
||||
App::DocumentObject *link = Support.getValue();
|
||||
@@ -6545,7 +6545,7 @@ bool SketchObject::evaluateSupport(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
void SketchObject::validateExternalLinks(void)
|
||||
void SketchObject::validateExternalLinks()
|
||||
{
|
||||
Base::StateLocker lock(managedoperation, true); // no need to check input data validity as this is an sketchobject managed operation.
|
||||
|
||||
@@ -6609,7 +6609,7 @@ void SketchObject::validateExternalLinks(void)
|
||||
}
|
||||
}
|
||||
|
||||
void SketchObject::rebuildExternalGeometry(void)
|
||||
void SketchObject::rebuildExternalGeometry()
|
||||
{
|
||||
// get the actual lists of the externals
|
||||
std::vector<DocumentObject*> Objects = ExternalGeometry.getValues();
|
||||
@@ -7182,14 +7182,14 @@ void SketchObject::rebuildExternalGeometry(void)
|
||||
rebuildVertexIndex();
|
||||
}
|
||||
|
||||
std::vector<Part::Geometry*> SketchObject::getCompleteGeometry(void) const
|
||||
std::vector<Part::Geometry*> SketchObject::getCompleteGeometry() const
|
||||
{
|
||||
std::vector<Part::Geometry*> vals = getInternalGeometry();
|
||||
vals.insert(vals.end(), ExternalGeo.rbegin(), ExternalGeo.rend()); // in reverse order
|
||||
return vals;
|
||||
}
|
||||
|
||||
GeoListFacade SketchObject::getGeoListFacade(void) const
|
||||
GeoListFacade SketchObject::getGeoListFacade() const
|
||||
{
|
||||
std::vector<GeometryFacadeUniquePtr> facade;
|
||||
facade.reserve( Geometry.getSize() + ExternalGeo.size() );
|
||||
@@ -7203,7 +7203,7 @@ GeoListFacade SketchObject::getGeoListFacade(void) const
|
||||
return GeoListFacade::getGeoListModel(std::move(facade), Geometry.getSize());
|
||||
}
|
||||
|
||||
void SketchObject::rebuildVertexIndex(void)
|
||||
void SketchObject::rebuildVertexIndex()
|
||||
{
|
||||
VertexId2GeoId.resize(0);
|
||||
VertexId2PosId.resize(0);
|
||||
@@ -7794,7 +7794,7 @@ double SketchObject::calculateConstraintError(int ConstrId)
|
||||
return result;
|
||||
}
|
||||
|
||||
PyObject *SketchObject::getPyObject(void)
|
||||
PyObject *SketchObject::getPyObject()
|
||||
{
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
@@ -7803,7 +7803,7 @@ PyObject *SketchObject::getPyObject(void)
|
||||
return Py::new_reference_to(PythonObject);
|
||||
}
|
||||
|
||||
unsigned int SketchObject::getMemSize(void) const
|
||||
unsigned int SketchObject::getMemSize() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -8039,7 +8039,7 @@ void SketchObject::restoreFinished()
|
||||
}
|
||||
}
|
||||
|
||||
void SketchObject::migrateSketch(void)
|
||||
void SketchObject::migrateSketch()
|
||||
{
|
||||
bool noextensions = false;
|
||||
|
||||
@@ -8366,22 +8366,22 @@ int SketchObject::detectMissingEqualityConstraints(double precision)
|
||||
return analyser->detectMissingEqualityConstraints(precision);
|
||||
}
|
||||
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingPointOnPointConstraints(void)
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingPointOnPointConstraints()
|
||||
{
|
||||
return analyser->getMissingPointOnPointConstraints();
|
||||
}
|
||||
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingVerticalHorizontalConstraints(void)
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingVerticalHorizontalConstraints()
|
||||
{
|
||||
return analyser->getMissingVerticalHorizontalConstraints();
|
||||
}
|
||||
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingLineEqualityConstraints(void)
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingLineEqualityConstraints()
|
||||
{
|
||||
return analyser->getMissingLineEqualityConstraints();
|
||||
}
|
||||
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingRadiusConstraints(void)
|
||||
std::vector<ConstraintIds> & SketchObject::getMissingRadiusConstraints()
|
||||
{
|
||||
return analyser->getMissingRadiusConstraints();
|
||||
}
|
||||
@@ -8464,7 +8464,7 @@ int SketchObject::renameConstraint(int GeoId, std::string name)
|
||||
return -1;
|
||||
}
|
||||
|
||||
std::vector<Base::Vector3d> SketchObject::getOpenVertices(void) const
|
||||
std::vector<Base::Vector3d> SketchObject::getOpenVertices() const
|
||||
{
|
||||
std::vector<Base::Vector3d> points;
|
||||
|
||||
@@ -8529,10 +8529,10 @@ int SketchObject::getGeometryId(int GeoId, long &id) const
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Sketcher::SketchObjectPython, Sketcher::SketchObject)
|
||||
template<> const char* Sketcher::SketchObjectPython::getViewProviderName(void) const {
|
||||
template<> const char* Sketcher::SketchObjectPython::getViewProviderName() const {
|
||||
return "SketcherGui::ViewProviderPython";
|
||||
}
|
||||
template<> PyObject* Sketcher::SketchObjectPython::getPyObject(void) {
|
||||
template<> PyObject* Sketcher::SketchObjectPython::getPyObject() {
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
PythonObject = Py::Object(new FeaturePythonPyT<SketchObjectPy>(this),true);
|
||||
|
||||
Reference in New Issue
Block a user