From c382c5202cdfd88302caa11c871bcb6a6c53e5bc Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 13 Nov 2024 13:05:22 +0100 Subject: [PATCH] tdf#163486: PVS: variable was assigned the same value Since commit 2387c2a46e15995686d28dccdfd455012072b4cf Author: Matthew J. Francis Date: Wed Jul 29 15:22:54 2015 +0800 Give PyUNO structs/exceptions their own separate type V1048 The 'me' variable was assigned the same value. Change-Id: Ia75c524c9cf459ff2961206c9a17dac1de0125a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176530 Reviewed-by: Xisco Fauli Tested-by: Jenkins --- pyuno/source/module/pyuno_struct.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyuno/source/module/pyuno_struct.cxx b/pyuno/source/module/pyuno_struct.cxx index 1a691f16d5f0..937345ac87b7 100644 --- a/pyuno/source/module/pyuno_struct.cxx +++ b/pyuno/source/module/pyuno_struct.cxx @@ -125,7 +125,6 @@ static PyObject* PyUNOStruct_getattr( PyObject* self, char* name ) { Runtime runtime; - me = reinterpret_cast(self); if (strcmp (name, "__dict__") == 0) { Py_INCREF (Py_TYPE(me)->tp_dict); @@ -185,9 +184,7 @@ static PyObject* PyUNOStruct_getattr( PyObject* self, char* name ) static int PyUNOStruct_setattr (PyObject* self, char* name, PyObject* value) { - PyUNO* me; - - me = reinterpret_cast(self); + PyUNO* me = reinterpret_cast(self); try { Runtime runtime;