Mod: redundant void 2

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

View File

@@ -36,7 +36,7 @@
using namespace Path;
// returns a string which represents the object e.g. when printed in python
std::string VoronoiVertexPy::representation(void) const
std::string VoronoiVertexPy::representation() const
{
std::stringstream ss;
ss.precision(5);
@@ -104,7 +104,7 @@ VoronoiVertex* getVoronoiVertexFromPy(const VoronoiVertexPy *v, PyObject *args =
}
Py::Long VoronoiVertexPy::getIndex(void) const {
Py::Long VoronoiVertexPy::getIndex() const {
VoronoiVertex *v = getVoronoiVertexPtr();
if (v->isBound()) {
return Py::Long(v->dia->index(v->ptr));
@@ -112,7 +112,7 @@ Py::Long VoronoiVertexPy::getIndex(void) const {
return Py::Long(-1);
}
Py::Long VoronoiVertexPy::getColor(void) const {
Py::Long VoronoiVertexPy::getColor() const {
VoronoiVertex *v = getVoronoiVertexPtr();
if (v->isBound()) {
Voronoi::color_type color = v->ptr->color() & Voronoi::ColorMask;
@@ -125,13 +125,13 @@ void VoronoiVertexPy::setColor(Py::Long color) {
getVertexFromPy(this)->color(long(color) & Voronoi::ColorMask);
}
Py::Float VoronoiVertexPy::getX(void) const
Py::Float VoronoiVertexPy::getX() const
{
VoronoiVertex *v = getVoronoiVertexFromPy(this);
return Py::Float(v->ptr->x() / v->dia->getScale());
}
Py::Float VoronoiVertexPy::getY(void) const
Py::Float VoronoiVertexPy::getY() const
{
VoronoiVertex *v = getVoronoiVertexFromPy(this);
return Py::Float(v->ptr->y() / v->dia->getScale());