python: apply const method annotations to impls.
This commit is contained in:
@@ -149,7 +149,7 @@ PyObject* GeometryPy::translate(PyObject *args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::copy(PyObject *args)
|
||||
PyObject* GeometryPy::copy(PyObject *args) const
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ""))
|
||||
return nullptr;
|
||||
@@ -176,7 +176,7 @@ PyObject* GeometryPy::copy(PyObject *args)
|
||||
return cpy;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::clone(PyObject *args)
|
||||
PyObject* GeometryPy::clone(PyObject *args) const
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ""))
|
||||
return nullptr;
|
||||
@@ -203,7 +203,7 @@ PyObject* GeometryPy::clone(PyObject *args)
|
||||
return cpy;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::isSame(PyObject *args)
|
||||
PyObject* GeometryPy::isSame(PyObject *args) const
|
||||
{
|
||||
PyObject* other {};
|
||||
double tol {};
|
||||
@@ -235,7 +235,7 @@ PyObject* GeometryPy::setExtension(PyObject *args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::getExtensionOfType(PyObject *args)
|
||||
PyObject* GeometryPy::getExtensionOfType(PyObject *args) const
|
||||
{
|
||||
char* o;
|
||||
if (PyArg_ParseTuple(args, "s", &o)) {
|
||||
@@ -275,7 +275,7 @@ PyObject* GeometryPy::getExtensionOfType(PyObject *args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::getExtensionOfName(PyObject *args)
|
||||
PyObject* GeometryPy::getExtensionOfName(PyObject *args) const
|
||||
{
|
||||
char* o;
|
||||
if (PyArg_ParseTuple(args, "s", &o)) {
|
||||
@@ -306,7 +306,7 @@ PyObject* GeometryPy::getExtensionOfName(PyObject *args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::hasExtensionOfType(PyObject *args)
|
||||
PyObject* GeometryPy::hasExtensionOfType(PyObject *args) const
|
||||
{
|
||||
char* o;
|
||||
if (PyArg_ParseTuple(args, "s", &o)) {
|
||||
@@ -334,7 +334,7 @@ PyObject* GeometryPy::hasExtensionOfType(PyObject *args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::hasExtensionOfName(PyObject *args)
|
||||
PyObject* GeometryPy::hasExtensionOfName(PyObject *args) const
|
||||
{
|
||||
char* o;
|
||||
if (PyArg_ParseTuple(args, "s", &o)) {
|
||||
@@ -401,7 +401,7 @@ PyObject* GeometryPy::deleteExtensionOfName(PyObject *args)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PyObject* GeometryPy::getExtensions(PyObject *args)
|
||||
PyObject* GeometryPy::getExtensions(PyObject *args) const
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, "")){
|
||||
PyErr_SetString(PartExceptionOCCError, "No arguments were expected");
|
||||
|
||||
Reference in New Issue
Block a user