diff options
Diffstat (limited to 'plugins/pychrysalide/arch/operands')
-rw-r--r-- | plugins/pychrysalide/arch/operands/proxy.c | 11 | ||||
-rw-r--r-- | plugins/pychrysalide/arch/operands/register.c | 11 |
2 files changed, 2 insertions, 20 deletions
diff --git a/plugins/pychrysalide/arch/operands/proxy.c b/plugins/pychrysalide/arch/operands/proxy.c index 401fe40..1cfd4a4 100644 --- a/plugins/pychrysalide/arch/operands/proxy.c +++ b/plugins/pychrysalide/arch/operands/proxy.c @@ -165,8 +165,6 @@ static int py_proxy_operand_init(PyObject *self, PyObject *args, PyObject *kwds) { GProxyFeeder *feeder; /* Fournisseur transmis */ int ret; /* Bilan de lecture des args. */ - PyObject *new_args; /* Nouveaux arguments épurés */ - PyObject *new_kwds; /* Nouveau dictionnaire épuré */ GProxyOperand *operand; /* Opérande à manipuler */ #define PROXY_OPERAND_DOC \ @@ -187,14 +185,7 @@ static int py_proxy_operand_init(PyObject *self, PyObject *args, PyObject *kwds) /* Initialisation d'un objet GLib */ - new_args = PyTuple_New(0); - new_kwds = PyDict_New(); - - ret = PyGObject_Type.tp_init(self, new_args, new_kwds); - - Py_DECREF(new_kwds); - Py_DECREF(new_args); - + ret = forward_pygobjet_init(self); if (ret == -1) return -1; /* Eléments de base */ diff --git a/plugins/pychrysalide/arch/operands/register.c b/plugins/pychrysalide/arch/operands/register.c index ac91945..fcf838c 100644 --- a/plugins/pychrysalide/arch/operands/register.c +++ b/plugins/pychrysalide/arch/operands/register.c @@ -175,8 +175,6 @@ static int py_register_operand_init(PyObject *self, PyObject *args, PyObject *kw { GArchRegister *reg; /* Registre brut transmis */ int ret; /* Bilan de lecture des args. */ - PyObject *new_args; /* Nouveaux arguments épurés */ - PyObject *new_kwds; /* Nouveau dictionnaire épuré */ GRegisterOperand *operand; /* Opérande à manipuler */ #define REGISTER_OPERAND_DOC \ @@ -197,14 +195,7 @@ static int py_register_operand_init(PyObject *self, PyObject *args, PyObject *kw /* Initialisation d'un objet GLib */ - new_args = PyTuple_New(0); - new_kwds = PyDict_New(); - - ret = PyGObject_Type.tp_init(self, new_args, new_kwds); - - Py_DECREF(new_kwds); - Py_DECREF(new_args); - + ret = forward_pygobjet_init(self); if (ret == -1) return -1; /* Eléments de base */ |