tdf#163486: PVS: variable was assigned the same value
Since
commit 2387c2a46e
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
This commit is contained in:
parent
97cb43c001
commit
c382c5202c
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue