summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-11-13 13:05:22 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-11-13 20:12:29 +0100
commitc382c5202cdfd88302caa11c871bcb6a6c53e5bc (patch)
treebf96e4c204b32a96964ea3e41d7cdeb86c75fe1c
parent97cb43c001ffa7811d05150b86902bff8323c2d7 (diff)
tdf#163486: PVS: variable was assigned the same value
Since commit 2387c2a46e15995686d28dccdfd455012072b4cf Author: Matthew J. Francis <mjay.francis@gmail.com> 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 <xiscofauli@libreoffice.org> Tested-by: Jenkins
-rw-r--r--pyuno/source/module/pyuno_struct.cxx5
1 files changed, 1 insertions, 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<PyUNO*>(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<PyUNO*>(self);
+ PyUNO* me = reinterpret_cast<PyUNO*>(self);
try
{
Runtime runtime;