From a2073c2799d7cc35b361d336ab94ad2176b35323 Mon Sep 17 00:00:00 2001 From: SONOLET Aymeric Date: Thu, 12 Sep 2024 16:15:14 +0200 Subject: [PATCH] try fix: try reverting changes on MEDCouplingDataArrayTraits.hxx --- .../MEDCouplingDataArrayTraits.hxx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx b/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx index 2a9179639..6666a9f00 100644 --- a/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx +++ b/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx @@ -71,11 +71,11 @@ struct PyCallBackDataArraySt { MCData *_pt_mc; }; -using PyCallBackDataArrayChar = struct PyCallBackDataArraySt; -using PyCallBackDataArrayInt32 = struct PyCallBackDataArraySt; -using PyCallBackDataArrayInt64 = struct PyCallBackDataArraySt; -using PyCallBackDataArrayFloat = struct PyCallBackDataArraySt; -using PyCallBackDataArrayDouble = struct PyCallBackDataArraySt; +typedef struct PyCallBackDataArraySt PyCallBackDataArrayChar; +typedef struct PyCallBackDataArraySt PyCallBackDataArrayInt32; +typedef struct PyCallBackDataArraySt PyCallBackDataArrayInt64; +typedef struct PyCallBackDataArraySt PyCallBackDataArrayFloat; +typedef struct PyCallBackDataArraySt PyCallBackDataArrayDouble; extern "C" { @@ -83,31 +83,31 @@ extern "C" static PyObject *callbackmcdataarraychar___new__(PyTypeObject *type, PyObject *args, PyObject *kwargs) { - auto *self = (PyCallBackDataArrayChar *) ( type->tp_alloc(type, 0) ); + PyCallBackDataArrayChar *self = (PyCallBackDataArrayChar *) ( type->tp_alloc(type, 0) ); return (PyObject *)self; } static PyObject *callbackmcdataarrayint32___new__(PyTypeObject *type, PyObject *args, PyObject *kwargs) { - auto *self = (PyCallBackDataArrayInt32 *) ( type->tp_alloc(type, 0) ); + PyCallBackDataArrayInt32 *self = (PyCallBackDataArrayInt32 *) ( type->tp_alloc(type, 0) ); return (PyObject *)self; } static PyObject *callbackmcdataarrayint64___new__(PyTypeObject *type, PyObject *args, PyObject *kwargs) { - auto *self = (PyCallBackDataArrayInt64 *) ( type->tp_alloc(type, 0) ); + PyCallBackDataArrayInt64 *self = (PyCallBackDataArrayInt64 *) ( type->tp_alloc(type, 0) ); return (PyObject *)self; } static PyObject *callbackmcdataarrayfloat___new__(PyTypeObject *type, PyObject *args, PyObject *kwargs) { - auto *self = (PyCallBackDataArrayFloat *) ( type->tp_alloc(type, 0) ); + PyCallBackDataArrayFloat *self = (PyCallBackDataArrayFloat *) ( type->tp_alloc(type, 0) ); return (PyObject *)self; } static PyObject *callbackmcdataarraydouble___new__(PyTypeObject *type, PyObject *args, PyObject *kwargs) { - auto *self = (PyCallBackDataArrayDouble *) ( type->tp_alloc(type, 0) ); + PyCallBackDataArrayDouble *self = (PyCallBackDataArrayDouble *) ( type->tp_alloc(type, 0) ); return (PyObject *)self; } -- 2.39.2