pyuno/source/module/pyuno_struct.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit c382c5202cdfd88302caa11c871bcb6a6c53e5bc
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Nov 13 13:05:22 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Nov 13 20:12:29 2024 +0100

    tdf#163486: PVS: variable was assigned the same value
    
    Since
    commit 2387c2a46e15995686d28dccdfd455012072b4cf
    Author: Matthew J. Francis <mjay.fran...@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 <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

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;

Reply via email to