Mod: redundant void 2

This commit is contained in:
berniev
2022-08-07 20:05:16 +10:00
committed by wwmayer
parent 311abcc43e
commit da9ebc572f
805 changed files with 3787 additions and 3787 deletions

View File

@@ -37,7 +37,7 @@
using namespace Part;
// returns a string which represents the object e.g. when printed in python
std::string ToroidPy::representation(void) const
std::string ToroidPy::representation() const
{
return "<Toroid object>";
}
@@ -62,7 +62,7 @@ int ToroidPy::PyInit(PyObject* args, PyObject* /*kwd*/)
return -1;
}
Py::Float ToroidPy::getMajorRadius(void) const
Py::Float ToroidPy::getMajorRadius() const
{
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
(getGeomToroidPtr()->handle());
@@ -81,7 +81,7 @@ void ToroidPy::setMajorRadius(Py::Float arg)
}
}
Py::Float ToroidPy::getMinorRadius(void) const
Py::Float ToroidPy::getMinorRadius() const
{
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
(getGeomToroidPtr()->handle());
@@ -100,7 +100,7 @@ void ToroidPy::setMinorRadius(Py::Float arg)
}
}
Py::Object ToroidPy::getCenter(void) const
Py::Object ToroidPy::getCenter() const
{
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
(getGeomToroidPtr()->handle());
@@ -124,7 +124,7 @@ void ToroidPy::setCenter(Py::Object arg)
}
}
Py::Object ToroidPy::getAxis(void) const
Py::Object ToroidPy::getAxis() const
{
Handle(Geom_ElementarySurface) s = Handle(Geom_ElementarySurface)::DownCast
(getGeometryPtr()->handle());
@@ -167,14 +167,14 @@ void ToroidPy::setAxis(Py::Object arg)
}
}
Py::Float ToroidPy::getArea(void) const
Py::Float ToroidPy::getArea() const
{
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
(getGeomToroidPtr()->handle());
return Py::Float(torus->Area());
}
Py::Float ToroidPy::getVolume(void) const
Py::Float ToroidPy::getVolume() const
{
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
(getGeomToroidPtr()->handle());